cvs commit: src/sys/kern kern_descrip.c kern_lock.c kern_mtxpool.c
kern_prot.c kern_resource.c kern_sx.c src/sys/sys kernel.h mutex.h
Don Lewis
truckman at FreeBSD.org
Sat Jul 12 18:22:22 PDT 2003
truckman 2003/07/12 18:22:21 PDT
FreeBSD src repository
Modified files:
sys/kern kern_descrip.c kern_lock.c kern_mtxpool.c
kern_prot.c kern_resource.c kern_sx.c
sys/sys kernel.h mutex.h
Log:
Extend the mutex pool implementation to permit the creation and use of
multiple mutex pools with different options and sizes. Mutex pools can
be created with either the default sleep mutexes or with spin mutexes.
A dynamically created mutex pool can now be destroyed if it is no longer
needed.
Create two pools by default, one that matches the existing pool that
uses the MTX_NOWITNESS option that should be used for building higher
level locks, and a new pool with witness checking enabled.
Modify the users of the existing mutex pool to use the appropriate pool
in the new implementation.
Reviewed by: jhb
Revision Changes Path
1.208 +1 -1 src/sys/kern/kern_descrip.c
1.69 +2 -2 src/sys/kern/kern_lock.c
1.8 +131 -52 src/sys/kern/kern_mtxpool.c
1.175 +1 -1 src/sys/kern/kern_prot.c
1.127 +1 -1 src/sys/kern/kern_resource.c
1.20 +1 -1 src/sys/kern/kern_sx.c
1.111 +2 -1 src/sys/sys/kernel.h
1.62 +23 -5 src/sys/sys/mutex.h
More information about the cvs-src
mailing list