kernel -- lockmgr debugging.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 25 Jan 2011 12:58:54 +0000 (04:58 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 25 Jan 2011 12:58:54 +0000 (04:58 -0800)
commit67e75efb1df71c9e7f599c5a9e1e69f184877e08
tree9c0002b65fefb18a33edd12231497b031ba6b3c3
parenta8ea7783d2f4df6d826aa6a3742a6be3e29e780d
kernel -- lockmgr debugging.

* Track exclusive lockmgr locks held by a thread in a per-td stack,
  td->td_lockmgr_stack[]. The stack also tracks the depth of the lockmgr
  recursion, if any.

* Move td->td_locks count from SIMPLELOCK_DEBUG to DEBUG_LOCKS; we have not
  used a simplelock to interlock lockmgr lock updates in a very long time.
sys/conf/options
sys/config/LINT
sys/kern/kern_lock.c
sys/sys/thread.h