detect idle kse correctly.

This commit is contained in:
davidxu 2002-10-22 02:27:19 +00:00
parent 4e7f1e8a5d
commit 94b30e0ab5

View File

@ -346,7 +346,7 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
FOREACH_KSE_IN_GROUP(kg, ke2) {
if (ke2->ke_mailbox != uap->mbx)
continue;
if (ke2->ke_flags & KEF_IDLEKSE) {
if (ke2->ke_state == KES_IDLE) {
ke = ke2;
goto found;
} else {