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:
parent
c5a53306ce
commit
e87dfc0cde
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user