mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 15:12:44 +00:00
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
3a18729505
commit
c978f49e20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72886
@ -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