kernel -- token: Two shared token DEBUG_LOCKS tests.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 17 Nov 2011 02:07:47 +0000 (18:07 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 17 Nov 2011 02:07:47 +0000 (18:07 -0800)
commit784abcf016439b3921045915ae603359a2166860
tree2f48162e21123e26536e3e48661340dd3411b0f5
parentaa7ecbbc707d099121062792e366b914be2f600c
kernel -- token: Two shared token DEBUG_LOCKS tests.

* New warning when a pool token is taken in shared mode.

* KASSERT when trying to take an exclusive token with that token
  already held shared.

Both tests are only active under DEBUG_LOCKS.
sys/kern/lwkt_token.c