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:
John Baldwin 2001-09-19 22:52:59 +00:00
parent 8ce3678a09
commit a44f918bf9
2 changed files with 2 additions and 0 deletions

View File

@ -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"));

View File

@ -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"));