summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_mbuf.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
committerjhb <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
commite4bcd25517da2e44fd854859cc6ead7dcfe3df3a (patch)
treed32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/kern/subr_mbuf.c
parente87dfc0cdec66dcab96cfd816e8a33d1c59dc261 (diff)
downloadFreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.zip
FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.tar.gz
Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls
to WITNESS_WARN().
Diffstat (limited to 'sys/kern/subr_mbuf.c')
-rw-r--r--sys/kern/subr_mbuf.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c
index 4facff8..7906ab1 100644
--- a/sys/kern/subr_mbuf.c
+++ b/sys/kern/subr_mbuf.c
@@ -1038,15 +1038,8 @@ mb_reclaim(void)
struct domain *dp;
struct protosw *pr;
-/*
- * XXX: Argh, we almost always trip here with witness turned on now-a-days
- * XXX: because we often come in with Giant held. For now, there's no way
- * XXX: to avoid this.
- */
-#ifdef WITNESS
- KASSERT(witness_list(curthread) == 0,
- ("mb_reclaim() called with locks held"));
-#endif
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK | WARN_PANIC, NULL,
+ "mb_reclaim()");
mbstat.m_drain++; /* XXX: No consistency. */
OpenPOWER on IntegriCloud