From e5173c046ad9705b566cd017e8f18d78bd6d9b78 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 22 Feb 2001 13:47:01 +0000 Subject: [PATCH] Add a mtx_assert() in maybe_resched() just to be sure it's always called with sched_lock held. --- sys/kern/kern_synch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 2e244a060375..85b30624da7c 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -107,6 +107,7 @@ maybe_resched(p) struct proc *p; { + mtx_assert(&sched_lock, MA_OWNED); if (p->p_pri.pri_level < curproc->p_pri.pri_level) need_resched(); }