Interrupt thread preemption was switching in threads with held tokens
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 27 Sep 2007 18:27:54 +0000 (18:27 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 27 Sep 2007 18:27:54 +0000 (18:27 +0000)
commitd3d1cbc8eed7b9ae4a8c786080a93406912e2d31
tree4fef5c3f93f22c4c7b8fef4b8ba2cf54426ef74b
parent463a6bdd2349db2ff7c484aa32c200723e3353ba
Interrupt thread preemption was switching in threads with held tokens
without acquiring the tokens.  Just don't preempt if the target thread
is holding a token.

This fixes a token-related panic when using the NDIS driver.  NDIS
is the only driver which uses tokens in its interrupt handler.
sys/kern/lwkt_thread.c