cvs commit: src/sys/kern kern_lock.c kern_sx.c subr_turnstile.c
src/sys/sys lockmgr.h sx.h
John Baldwin
jhb at FreeBSD.org
Tue Aug 15 18:29:04 UTC 2006
jhb 2006-08-15 18:29:02 UTC
FreeBSD src repository
Modified files:
sys/kern kern_lock.c kern_sx.c subr_turnstile.c
sys/sys lockmgr.h sx.h
Log:
Add a new 'show sleepchain' ddb command similar to 'show lockchain' except
that it operates on lockmgr and sx locks. This can be useful for tracking
down vnode deadlocks in VFS for example. Note that this command is a bit
more fragile than 'show lockchain' as we have to poke around at the
wait channel of a thread to see if it points to either a struct lock or
a condition variable inside of a struct sx. If td_wchan points to
something unmapped, then this command will terminate early due to a fault,
but no harm will be done.
Revision Changes Path
1.99 +28 -0 src/sys/kern/kern_lock.c
1.30 +54 -1 src/sys/kern/kern_sx.c
1.163 +67 -0 src/sys/kern/subr_turnstile.c
1.50 +3 -0 src/sys/sys/lockmgr.h
1.25 +3 -0 src/sys/sys/sx.h
More information about the cvs-src
mailing list