Add a WITNESS_WARN() call to verify that we hold no locks after running

a handler from an interrupt thread.
This commit is contained in:
jhb 2003-03-04 21:01:42 +00:00
parent c5a53306ce
commit e87dfc0cde

View File

@ -544,6 +544,7 @@ ithread_loop(void *arg)
* lock. This may take a while and it_need may get
* set again, so we have to check it again.
*/
WITNESS_WARN(WARN_PANIC, NULL, "suspending ithread");
mtx_assert(&Giant, MA_NOTOWNED);
mtx_lock_spin(&sched_lock);
if (!ithd->it_need) {