- Remove the correct thread from the run queue in setrunqueue(). This

fixes ULE + KSE.
This commit is contained in:
Jeff Roberson 2003-10-17 20:53:04 +00:00
parent 11e6ffbea3
commit 94816f6d52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121171

View File

@ -356,11 +356,11 @@ setrunqueue(struct thread *td)
* None free, but there is one we can commandeer.
*/
ke = tda->td_kse;
sched_rem(tda);
tda->td_kse = NULL;
ke->ke_thread = NULL;
tda = kg->kg_last_assigned =
TAILQ_PREV(tda, threadqueue, td_runq);
sched_rem(td);
}
} else {
/*