cvs commit: src/sys/kern kern_lock.c kern_sx.c subr_turnstile.c src/sys/sys lockmgr.h sx.h

[ Available lists | Index of cvs-all | Month of Aug 2006 | Week of 15 Aug 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
John Baldwin <jhb@FreeBSD.org>
Date
15 Aug 2006 18:29:04
Subject
cvs commit: src/sys/kern kern_lock.c kern_sx.c subr_turnstile.c src/sys/sys lockmgr.h sx.h
Message-ID
200608151829.k7FIT2Sx042038@repoman.freebsd.org


[ Hide this part ]
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


Elapsed time: 0.093 seconds