diff options
author | kan <kan@FreeBSD.org> | 2004-01-06 04:34:13 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-01-06 04:34:13 +0000 |
commit | 6ecda71663ef14ce4784c7105163615d9178cfb9 (patch) | |
tree | 7320dcb76931d7ba4865bb25064b0611fdbca09c | |
parent | 443a35f2bfabaf0a5203b2f894cf8f7476ce4008 (diff) | |
download | FreeBSD-src-6ecda71663ef14ce4784c7105163615d9178cfb9.zip FreeBSD-src-6ecda71663ef14ce4784c7105163615d9178cfb9.tar.gz |
Add pid to the info printed in lockmgr_printinfo. This makes VFS
diagnostic messages slightly more useful.
-rw-r--r-- | sys/kern/kern_lock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index b088747..59f60ab 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -611,8 +611,9 @@ lockmgr_printinfo(lkp) printf(" lock type %s: SHARED (count %d)", lkp->lk_wmesg, lkp->lk_sharecount); else if (lkp->lk_flags & LK_HAVE_EXCL) - printf(" lock type %s: EXCL (count %d) by thread %p", - lkp->lk_wmesg, lkp->lk_exclusivecount, lkp->lk_lockholder); + printf(" lock type %s: EXCL (count %d) by thread %p (pid %d)", + lkp->lk_wmesg, lkp->lk_exclusivecount, + lkp->lk_lockholder, lkp->lk_lockholder->td_proc->p_pid); if (lkp->lk_waitcount > 0) printf(" with %d pending", lkp->lk_waitcount); } |