Fix a bug in propagate priority: the kse group pointer wasn't being
updated in the loop so the new thread always seemd to have the same priority as the original thread and no actual priorities were changed.
This commit is contained in:
parent
8ce3678a09
commit
a44f918bf9
@ -129,6 +129,7 @@ propagate_priority(struct thread *td)
|
||||
MPASS(m->mtx_lock == MTX_CONTESTED);
|
||||
return;
|
||||
}
|
||||
kg = td->td_ksegrp;
|
||||
|
||||
MPASS(td->td_proc->p_magic == P_MAGIC);
|
||||
KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex"));
|
||||
|
@ -129,6 +129,7 @@ propagate_priority(struct thread *td)
|
||||
MPASS(m->mtx_lock == MTX_CONTESTED);
|
||||
return;
|
||||
}
|
||||
kg = td->td_ksegrp;
|
||||
|
||||
MPASS(td->td_proc->p_magic == P_MAGIC);
|
||||
KASSERT(td->td_proc->p_stat != SSLEEP, ("sleeping thread owns a mutex"));
|
||||
|
Loading…
Reference in New Issue
Block a user