Add a mtx_assert() in maybe_resched() just to be sure it's always called
with sched_lock held.
This commit is contained in:
parent
13aad95ca7
commit
e5173c046a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user