cvs commit: src/sys/kern kern_mutex.c subr_turnstile.c src/sys/sys
turnstile.h
John Baldwin
jhb at FreeBSD.org
Fri Jan 27 14:42:14 PST 2006
jhb 2006-01-27 22:42:12 UTC
FreeBSD src repository
Modified files:
sys/kern kern_mutex.c subr_turnstile.c
sys/sys turnstile.h
Log:
- Add support for having both a shared and exclusive queue of threads in
each turnstile. Also, allow for the owner thread pointer of a turnstile
to be NULL. This is needed for the upcoming reader/writer lock
implementation.
- Add a new ddb command 'show turnstile' that will look up the turnstile
associated with the given lock argument and display useful information
like the list of threads blocked on each queue, etc. If there isn't an
active turnstile for a lock at the specified address, then the function
will see if there is an active turnstile at the specified address and
display info about it if so.
- Adjust the mutex code to handle the turnstile API changes.
Tested on: i386 (all), alpha, amd64, sparc64 (1 and 3)
Revision Changes Path
1.167 +6 -5 src/sys/kern/kern_mutex.c
1.156 +174 -47 src/sys/kern/subr_turnstile.c
1.9 +13 -5 src/sys/sys/turnstile.h
More information about the cvs-all
mailing list