Debugging rw lock

Vijay Singh vijju.singh at gmail.com
Thu Feb 13 20:51:51 UTC 2014


I am running into an issue where an rw lock is read locked and never
unlocked, and causes a system to livelock. I was wondering if its possible
to figure out which thread owns the read lock?

It's the tcp pcbinfo lock.

(kgdb-amd64-7.4-08) show_rwlock rw
 name : tcp
 class: rw
 flags: {SLEEP, INITED, WITNESS, RECURSE, UPGRADABLE}
 state: RLOCK: 1 locks
 waiters: writers

Any help is appreciated.

-vijay


More information about the freebsd-hackers mailing list