Module Name: src Committed By: mrg Date: Wed Apr 27 07:55:15 UTC 2011
Modified Files: src/sys/dev/raidframe: rf_acctrace.h rf_driver.c rf_driver.h rf_engine.c rf_netbsdkintf.c rf_paritymap.c rf_raid.h rf_states.c rf_threadstuff.h Log Message: prepare to convert more raidframe old lock/sleep APIs to mutex/condvar: - remove RF_DECLARE_EXTERN_MUTEX and RF_DECLARE_STATIC_MUTEX, the qualifier can be provided at the use point with the normal define - rename the *LGMGR_MUTEX() macros to *mutex2() names, and add some more defines for use: rf_declare_mutex2() rf_declare_cond2() rf_lock_mutex2() rf_unlock_mutex2() rf_init_mutex2() rf_destroy_mutex2() rf_init_cond2() rf_destroy_cond2() rf_wait_cond2() rf_signal_cond2() rf_broadcast_cond2() - use the new names for the configureMutex(), which previous used some combo of direct mutex* calls and macros - convert the node_queue to use a mutex/cv combo - in rf_ShutdownEngine() and DAGExecutionThread(), also signal the former from the latter when it is done and about to exit - convert iodone_lock to use the new macros To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/raidframe/rf_acctrace.h cvs rdiff -u -r1.124 -r1.125 src/sys/dev/raidframe/rf_driver.c cvs rdiff -u -r1.17 -r1.18 src/sys/dev/raidframe/rf_driver.h cvs rdiff -u -r1.43 -r1.44 src/sys/dev/raidframe/rf_engine.c cvs rdiff -u -r1.285 -r1.286 src/sys/dev/raidframe/rf_netbsdkintf.c cvs rdiff -u -r1.7 -r1.8 src/sys/dev/raidframe/rf_paritymap.c cvs rdiff -u -r1.39 -r1.40 src/sys/dev/raidframe/rf_raid.h cvs rdiff -u -r1.45 -r1.46 src/sys/dev/raidframe/rf_states.c cvs rdiff -u -r1.24 -r1.25 src/sys/dev/raidframe/rf_threadstuff.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.