set ke_bound to NULL when kse owner thread becomes runnable.

Reviewed by: julian (mentor)
This commit is contained in:
David Xu 2002-10-03 01:22:05 +00:00
parent 0b024d3643
commit 5da2b58aeb

View File

@ -359,6 +359,7 @@ setrunqueue(struct thread *td)
KASSERT((td->td_kse != NULL),
("queueing BAD thread to run queue"));
ke = td->td_kse;
ke->ke_bound = NULL;
if (ke->ke_flags & KEF_ONLOANQ) {
ke->ke_flags &= ~KEF_ONLOANQ;
TAILQ_REMOVE(&kg->kg_lq, ke, ke_kgrlist);