summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2002-10-11bye-bye to RF_FREELIST_GET_INIT_ARG and RF_FREELIST_FREE_CLEAN_ARGoster
whos services are no longer needed after poolification of PSS structures.
2002-10-11poolify the allocation of Parity Stripe Status structures.oster
XXX: Current code may have problems if kernel memory is completely depleted. This is, unfortunately, not the only chunk of RAIDframe code to have this problem, and will have to be dealt with. :(
2002-10-07Minor comment and 80-column fixes. No functional changes.oster
2002-10-06poolify the RF_ReconMapListElem_t's used by rf_ReconMapUpdate().oster
Gives LOCKDEBUG kernels one less thing to complain about.
2002-10-06Add a missing RF_LOCK_MUTEX().oster
2002-10-06Introduce a temp variable, and allocate the ReconCtrl structure beforeoster
we protect raidPtr. One less thing for LOCKDEBUG to complain about.
2002-10-05update_size() does some bookkeeping, but nothing ever reads the dataoster
it gathers. Nuke it. Without update_size, FreeReconMapListElem() can do without mapPtr. That, in turn, means crunch_list() doesn't need a mapPtr either.
2002-10-05RU_NIL is not used. Remove it.oster
2002-10-04Minor cleanup. No functional changes.oster
2002-10-04Clean up #includes. Group function prototypes. Fix more 80-column lossageoster
that was missed before. Cleanup a printf.
2002-10-04Undo the change from 1.16->1.17, and 1.19->1.20. The ltsleep and lockingoster
that was there before before is just fine, and plays nicely with LOCKDEBUG now that we've added the raidio thread.
2002-10-04Tidy up comments and do some 80-column fixing. No functional changes.oster
2002-10-04As part of the effort to get RAIDframe playing nicely with LOCKDEBUG,oster
rework how completed requests are handled. In particular, instead of doing all sorts of work and locking in interrupt context, completed requests are now queued. A new kernel thread (rf_RaidIOThread) now handles calling rf_DiskIOComplete() and (req->CompleteFunc)() for each completed request. There is still work to be done to make RAIDframe LOCKDEBUG friendly, but this change is a huge step forward. Reviewed by (and many thanks to): thorpej
2002-10-02Create a thread creation macro that make it easier to name the DAG process.oster
Use it to have the DAGExecutionThread have a better name for each RAID process ('raid0', 'raid1', etc., vs. just 'raid', 'raid', etc.)
2002-10-02We're going to need rf_lkmgr_mutex_destroy() sooner than I thought.oster
2002-10-02Since we are unlocking the lock before sleeping, there is no needoster
to use ltsleep() when a tsleep() will suffice. Makes RAIDframe+LOCKDEBUG play together much better.
2002-10-01Add a generic config finalization hook, to be called once all realthorpej
devices have been discovered. All finalizer routines are iteratively invoked until all of them report that they have done no work. Use this hook to fix a latent bug in RAIDframe autoconfiguration of RAID sets exposed by the rework of SCSI device discovery.
2002-09-27remove trailing \n in panic(). approved perry.provos
2002-09-27Rather than referencing the cfdriver directly in the cfdata entries,thorpej
instead use a string naming the driver. The cfdriver is then looked up in a list which is built at run-time.
2002-09-24Nuke some ancient debugging code.oster
2002-09-24Cleanup the comment formatting a bit.oster
2002-09-23Nuke a couple of unneeded #defines.oster
2002-09-23lockTable is not needed for AddToWaitersQueue(). Thanks to Simon B.oster
(cleanup a couple comments while I'm here.)
2002-09-23Nuke a couple of unreached 'break's. Thanks (again) to Simon B.oster
2002-09-23The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover fromoster
simulation code. *poof* Thanks to Simon B.
2002-09-23CheckCvscanState never prints the file and line number. Thanks to Simon B.oster
2002-09-23Nuke 'lockflag', a holdover from the simulation code. Thanks to Simon B.oster
2002-09-23rf_lkmgr_mutex_destroy is currently unused. Thanks to Simon B.oster
2002-09-23Hide more stuff inside RF_DEBUG_SHUTDOWN. Add a prototype foroster
rf_FreeShutdownEnt() while we're here. Thanks to Simon B.
2002-09-23Nuke "baddisk". Thanks to Simon B.oster
2002-09-23Another 'unblockNode' goes *poof*. Also nuke an instance of anoster
(effectively) unused layoutPtr. Thanks to Simon B.
2002-09-23Clobber basically unused 'pda', and 'unblockNode' and 'wrUnBlock'.oster
Thanks to Simon B.
2002-09-23struct proc *p was only assigned to. Thanks Simon B.oster
2002-09-23Make this build w/ DEBUG.oster
2002-09-23The declaration for rf_GetSpareTableFromDaemon might be supplied inoster
a header file, but that doesn't help here if said header is not pulled in! (Hi Simon :) )
2002-09-23make it compile with DIAGNOSTICitojun
2002-09-23Don't need declarations for rf_copyback_in_progress andsimonb
rf_GetSpareTableFromDaemon() - these are already supplied in various header files.
2002-09-23Ooops.. should have included this 'row' with the last change.oster
2002-09-23'row' was defined and set, but never used. *poof* Thanks to Simon B.oster
2002-09-23Neither force nor retcode are used. *poof* Thanks to Simon B.oster
2002-09-23Remove unneeded variables and lame assignments. Thanks Simon B.!oster
2002-09-23bytesPerStripeUnit is set, but never used. Thanks to Simon B. for pointingoster
this out.
2002-09-23dataBytesPerStripe is set, but never used. *poof*oster
2002-09-22RAIDGETBUF and RAIDPUTBUF were #defines that were only used inoster
one place. Simplify things by removing them, and clean up more unneeded instances of 'unit' and 'rs'.
2002-09-22rf_flags wasn't being used. *poof*oster
2002-09-22A little housecleaning to nuke stuff that was unused.oster
2002-09-21Minor cleanup/reformatting.oster
2002-09-21#if 0 more stuff, per Krister's list. Thanks Krister!oster
(RAIDframe is now at a shade under 174K in GENERIC on i386)
2002-09-21#if 0 out one other function, and shuffle DEBUG code. Actuallyoster
reclaims another 14K!?!?!! Thanks Krister!
2002-09-21rf_RegisterReconDoneProc() isn't needed.oster
This is the last of the 'easy' ones that Krister made me aware of. Total savings on i386 GENERIC kernel: 13151 bytes RAIDframe in GENERIC is now at: 179033 Thanks again Krister!