diff options
author | davidxu <davidxu@FreeBSD.org> | 2002-10-24 09:16:46 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2002-10-24 09:16:46 +0000 |
commit | 1ad7602cf07c55beae3d33d0dff10169562a697f (patch) | |
tree | 6cb6e5a8889cf1c2ec5efb7173b27a17b1685c13 /sys/kern | |
parent | 842e39ccd89a966240364f58cc43ff6b5d71d7b6 (diff) | |
download | FreeBSD-src-1ad7602cf07c55beae3d33d0dff10169562a697f.zip FreeBSD-src-1ad7602cf07c55beae3d33d0dff10169562a697f.tar.gz |
don't forget to remove kse from idle queue.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kse.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index c5de672..f64ae8b 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -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; diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index c5de672..f64ae8b 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -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; |