mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Remove a KASSERT that can now happen and add a missing setrunnable.
This commit is contained in:
parent
ebc85edf5e
commit
67f7c1bbe1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109550
@ -1455,6 +1455,8 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
||||
FOREACH_KSE_IN_GROUP(kg, ke) {
|
||||
if (TD_IS_IDLE(ke->ke_owner)) {
|
||||
TD_CLR_IDLE(ke->ke_owner);
|
||||
setrunnable(ke->ke_owner);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -222,8 +222,6 @@ kse_reassign(struct kse *ke)
|
||||
* can not borrow KSEs.
|
||||
*/
|
||||
if (loaned) {
|
||||
KASSERT((original->td_standin == NULL),
|
||||
("kse_reassign: borrower still has standin thread"));
|
||||
TD_CLR_LOAN(owner);
|
||||
ke->ke_thread = owner;
|
||||
original->td_kse = NULL; /* give it amnesia */
|
||||
|
@ -1455,6 +1455,8 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
||||
FOREACH_KSE_IN_GROUP(kg, ke) {
|
||||
if (TD_IS_IDLE(ke->ke_owner)) {
|
||||
TD_CLR_IDLE(ke->ke_owner);
|
||||
setrunnable(ke->ke_owner);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user