don't forget to remove kse from idle queue.
This commit is contained in:
parent
5c8329ed6c
commit
9991db0cb5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105855
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user