Date: Fri, 27 Jan 2006 22:42:12 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c subr_turnstile.c src/sys/sys turnstile.h Message-ID: <200601272242.k0RMgCeJ062994@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601272242.k0RMgCeJ062994>
