From e392175600a066ab45434b75dc2f37d7ef7bde08 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 31 Mar 2005 22:50:14 +0000 Subject: [PATCH] Bring back the WITNESS_WARN() check to _STOPEVENT() as all the callers have been fixed for quite a while now. --- sys/sys/proc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 5f9586572a3e..5396f54bc47c 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -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)