Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/raidframe



Module Name:    src
Committed By:   oster
Date:           Mon Dec 29 03:33:48 UTC 2003

Modified Files:
        src/sys/dev/raidframe: rf_aselect.c rf_callback.c rf_dagdegrd.c
            rf_dagdegwr.c rf_dagffrd.c rf_dagffwr.c rf_dagutils.c rf_debugMem.h
            rf_diskqueue.c rf_disks.c rf_driver.c rf_evenodd.c rf_fifo.c
            rf_freelist.h rf_map.c rf_mcpair.c rf_netbsdkintf.c
            rf_paritylogging.c rf_parityloggingdags.c rf_parityscan.c
            rf_psstatus.c rf_reconmap.c rf_reconstruct.c rf_reconutil.c
            rf_revent.c rf_shutdown.c rf_sstf.c rf_stripelocks.c

Log Message:
- first kick at a major reworking of RAIDframe's memory allocation code:
  - 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.


To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 src/sys/dev/raidframe/rf_aselect.c \
    src/sys/dev/raidframe/rf_dagffrd.c src/sys/dev/raidframe/rf_fifo.c \
    src/sys/dev/raidframe/rf_mcpair.c
cvs rdiff -r1.10 -r1.11 src/sys/dev/raidframe/rf_callback.c \
    src/sys/dev/raidframe/rf_debugMem.h src/sys/dev/raidframe/rf_evenodd.c
cvs rdiff -r1.14 -r1.15 src/sys/dev/raidframe/rf_dagdegrd.c
cvs rdiff -r1.12 -r1.13 src/sys/dev/raidframe/rf_dagdegwr.c \
    src/sys/dev/raidframe/rf_revent.c
cvs rdiff -r1.11 -r1.12 src/sys/dev/raidframe/rf_dagffwr.c
cvs rdiff -r1.21 -r1.22 src/sys/dev/raidframe/rf_dagutils.c
cvs rdiff -r1.23 -r1.24 src/sys/dev/raidframe/rf_diskqueue.c \
    src/sys/dev/raidframe/rf_map.c
cvs rdiff -r1.46 -r1.47 src/sys/dev/raidframe/rf_disks.c
cvs rdiff -r1.72 -r1.73 src/sys/dev/raidframe/rf_driver.c
cvs rdiff -r1.7 -r1.8 src/sys/dev/raidframe/rf_freelist.h
cvs rdiff -r1.166 -r1.167 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -r1.16 -r1.17 src/sys/dev/raidframe/rf_paritylogging.c \
    src/sys/dev/raidframe/rf_stripelocks.c
cvs rdiff -r1.9 -r1.10 src/sys/dev/raidframe/rf_parityloggingdags.c \
    src/sys/dev/raidframe/rf_sstf.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/raidframe/rf_parityscan.c
cvs rdiff -r1.15 -r1.16 src/sys/dev/raidframe/rf_psstatus.c \
    src/sys/dev/raidframe/rf_reconutil.c
cvs rdiff -r1.18 -r1.19 src/sys/dev/raidframe/rf_reconmap.c
cvs rdiff -r1.57 -r1.58 src/sys/dev/raidframe/rf_reconstruct.c
cvs rdiff -r1.13 -r1.14 src/sys/dev/raidframe/rf_shutdown.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index