1
0
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:
Julian Elischer 2003-01-20 03:41:04 +00:00
parent ebc85edf5e
commit 67f7c1bbe1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109550
3 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}
}

View File

@ -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 */

View File

@ -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;
}
}
}