don't forget to remove kse from idle queue.

This commit is contained in:
David Xu 2002-10-24 09:16:46 +00:00
parent 5c8329ed6c
commit 9991db0cb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105855
2 changed files with 4 additions and 0 deletions

View File

@ -369,6 +369,8 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
return ESRCH;
}
found:
TAILQ_REMOVE(&kg->kg_iq, ke, ke_kgrlist);
kg->kg_idle_kses--;
thread_schedule_upcall(td, ke);
mtx_unlock_spin(&sched_lock);
td->td_retval[0] = 0;

View File

@ -369,6 +369,8 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
return ESRCH;
}
found:
TAILQ_REMOVE(&kg->kg_iq, ke, ke_kgrlist);
kg->kg_idle_kses--;
thread_schedule_upcall(td, ke);
mtx_unlock_spin(&sched_lock);
td->td_retval[0] = 0;