summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-03-04 21:01:42 +0000
committerjhb <jhb@FreeBSD.org>2003-03-04 21:01:42 +0000
commite87dfc0cdec66dcab96cfd816e8a33d1c59dc261 (patch)
treec55a71aae6e445f39b7a6f98c9c9a51498a81018 /sys/kern
parentc5a53306ce32b3cd3eff3dd73a4be3ec9fbd38e0 (diff)
downloadFreeBSD-src-e87dfc0cdec66dcab96cfd816e8a33d1c59dc261.zip
FreeBSD-src-e87dfc0cdec66dcab96cfd816e8a33d1c59dc261.tar.gz
Add a WITNESS_WARN() call to verify that we hold no locks after running
a handler from an interrupt thread.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_intr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index a0a7e0d..d2d72ae 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -544,6 +544,7 @@ restart:
* 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) {
OpenPOWER on IntegriCloud