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(); }