summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
2003-12-29Since rf_mutex_destroy() is effectively a NOP now, nuke it.oster
2003-12-29Simplify defn's of rf_mutex_init() and rf_mutex_destroy(). Sinceoster
neither of these ever fail, no need to have a return value. That makes all the "error detection" on these functions completely unneeded. But since we're here, if we don't have a return value, then why not make these macros? My.. look how things keep shrinking, with no loss in functionality!
2003-12-29Reduce uses of rf_mutex_init() and rf_cond_init(). Streamlines code,oster
removes useless error detection, and generally makes things easier to follow.
2003-12-29Tidy up a comment.oster
2003-12-29init_mcpair() and clean_mcpair() are much like init_rad() andoster
clean_rad() were -- these days they only serve to clutter things up. Remove the functions, and put the 2 lines of actual useful initialization into rf_AllocMCPair().
2003-12-29init_rad() and clean_rad() really do..... very little.. and only serveoster
to make things look far more complicated than they really are. It was also impossible for any of the mutex/cond initializations in init_rad() to actually fail, making the "error detection code" unneeded. Collapse the little work done by init_rad into rf_AllocRaidAccDesc(), and nuke init_rad() and clean_rad(). Save another 0.25K in GENERIC. [To be accurate/complete, init_rad() and clean_rad() *ARE* used in the simulator version of RAIDframe. But we're so far removed from that now that there is no point pretending otherwise.]
2003-12-29General format/comment cleanups. No functional changes.oster
2003-12-29Remove rf_freelist.h. Its contents are no longer needed.oster
2003-12-29- first kick at a major reworking of RAIDframe's memory allocation code:oster
- all freelists converted to pools - initialization of structure members in certain cases where code was relying on specific allocation and usage properties to keep structures in a "known state" (that doesn't work with pools!). - make most pool_get() be "PR_WAITOK" until they can be analyzed further, and/or have proper error handling added. - all RF_Mallocs zero the space returned, so there is no difference between RF_Calloc and RF_Malloc. In fact, all the RF_Calloc()'s do is tend to do is get things horribly confused. Make RF_Malloc() the "general memory allocator", with RF_MallocAndAdd() the "general memory allocator with allocation list". - some of these RF_Malloc's et al. are destined to disappear. - remove rf_rdp_freelist entirely (it's not used anywhere!) - remove: #include "rf_freelist.h" - to the files that were relying on the above, add: #include "rf_general.h" - add: #include "rf_debugMem.h" to rf_shutdown.h to make it happy about the loss of: #include "rf_freelist.h". This shrinks an i386 GENERIC kernel by approx 5K. RAIDframe now weighs in at about 162K on i386.
2003-12-29[Having received a definite lack of strenuous objection, a small amountoster
of strenuous agreement, and some general agreement, this commit is going ahead because it's now starting to block some other changes I wish to make.] Remove most of the support for the concept of "rows" from RAIDframe. While the "row" interface has been exported to the world, RAIDframe internals have really only supported a single row, even though they have feigned support of multiple rows. Nothing changes in configuration land -- config files still need to specify a single row, etc. All auto-config structures remain fully forward/backwards compatible. The only visible difference to the average user should be a reduction in the size of a GENERIC kernel (i386) by 4.5K. For those of us trolling through RAIDframe kernel code, a lot of the driver configuration code has become a LOT easier to read.
2003-12-21(Although I want this code to Go Away, I might as well fix this bug for ↵oster
completeness) If we don't have enough memory to allocate the pda freelist, make sure to cleanup the asm freelist.
2003-12-21Since the 5th arg of pool_init() wasn't actually the numberoster
of items with which to prime the pool, we now prime each pool using pool_prime().
2003-12-21Fix usage of fifth argument to pool_init().simonb
2003-11-16infoFunc doesn't exist any more. Nuke commented out bits referingoster
to infoFunc.
2003-10-30Remove some assigned-to but otherwise unused variables.simonb
2003-10-25Fix uninitialized variable warningschristos
2003-10-21Correct NULL abuse.fvdl
2003-10-19Remove unreachable break after return and goto statements.simonb
2003-08-12Let boot code include raidframe.h to get RF_PROTECTED_SECTORS.dsl
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-07-01Actually toss the comment I said I was tossing in the last commit.oster
2003-07-01- toss a comment that is no longer relevant.oster
- alist_mutex is a holdover from the simulator days, and it wasn't even used back then. Toss the variable and init/destroy calls.
2003-07-01Minor cleanup. No functional changes.oster
2003-07-01Toss experimental versions of some functions that were already #if 0'ed.oster
2003-07-01UpdateNodeHdrPtr() isn't used anywhere. Turf.oster
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2003-06-23Make sure to include opt_foo.h if a defflag option FOO is used.martin
2003-05-10Change bounds_check_with_label() to take a pointer to the disk structure,thorpej
rather than the label itself. This paves the way for some future changes.
2003-05-02Change return type of readdisklabel() to const char *dsl
I hope I've found all the correct places!
2003-04-13Remember to close the component if we decide it's not suitable for useoster
as a hot spare. Closes PR#20989 by David Brownlee.
2003-04-10Remove an assigned-to but unused variable.simonb
2003-04-10rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only insimonb
rf_stripelocks.c - make them static functions.
2003-04-10Remove an assigned-to but unused variable.simonb
2003-04-09Use PAGE_SIZE rather than NBPG.thorpej
2003-03-21Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTLdsl
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-02-25Add a new BUF_INIT() macro which initializes b_dep and b_interlock, andthorpej
use it. This fixes a few places where either b_dep or b_interlock were not properly initialized.
2003-02-09constify somejdolecek
2003-02-05Make the buffer cache code MP-safe.pk
2003-02-05"Utilize" has exactly the same meaning as "use," but it is moreperry
difficult to read and understand. Most manuals of English style therefore say that you should use "use".
2003-02-01Only use MALLOC_DECLARE() in kernel namespace.tron
2003-02-01Add extensible malloc types, adapted from FreeBSD. This turnsthorpej
malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
2003-01-20The Double-Semi-Colon Police.simonb
2003-01-19Merge the nathanw_sa branch.thorpej
2003-01-03Fix typo. PR#19619.junyoung
2002-11-23Nuke all (but one) of the remaining RF_UTILITY's.oster
2002-11-23Nuke some #if 0'ed code.oster
2002-11-23One less goto.oster
2002-11-23Bye-bye to the completely unused reconCtrlPtr->priorityList.oster
2002-11-22rf_SelectMirrorDiskPartition() is only needed in a few cases. #if itoster
out in the rest. Thanks to Krister!