Add a WITNESS_WARN() check to _STOPEVENT() since any _STOPEVENT() can
potentially sleep. This should help find some bogus locking.
This commit is contained in:
parent
0ab08e7b8b
commit
f6288e7552
@ -729,6 +729,8 @@ MALLOC_DECLARE(M_ZOMBIE);
|
||||
} while (0)
|
||||
#define _STOPEVENT(p, e, v) do { \
|
||||
PROC_LOCK_ASSERT(p, MA_OWNED); \
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, &p->p_mtx.mtx_object, \
|
||||
"checking stopevent %d", (e)); \
|
||||
if ((p)->p_stops & (e)) { \
|
||||
stopevent((p), (e), (v)); \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user