Add a WITNESS_WARN check to STOPEVENT() to match the one in _STOPEVENT().

This commit is contained in:
John Baldwin 2015-01-31 02:15:16 +00:00
parent 29fa5c67e4
commit 4c99145742
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277960

View File

@ -752,6 +752,8 @@ extern pid_t pid_max;
#define STOPEVENT(p, e, v) do { \
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, \
"checking stopevent %d", (e)); \
if ((p)->p_stops & (e)) { \
PROC_LOCK(p); \
stopevent((p), (e), (v)); \