Bring back the WITNESS_WARN() check to _STOPEVENT() as all the callers have

been fixed for quite a while now.
This commit is contained in:
John Baldwin 2005-03-31 22:50:14 +00:00
parent ea2b9b3e36
commit e392175600
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144444

View File

@ -727,6 +727,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)); \
} while (0)