- In thread_userret(), remove the Giant locking and unlocking around the

call to thread_alloc().

Approved by:	julian
Reviewed by:	jake, jeff
This commit is contained in:
Andrew R. Reiter 2002-07-01 03:15:16 +00:00
parent c2eda4b565
commit c0854cd341
2 changed files with 0 additions and 4 deletions

View File

@ -436,9 +436,7 @@ thread_userret(struct proc *p, struct ksegrp *kg, struct kse *ke,
int error = 0;
if (ke->ke_tdspare == NULL) {
mtx_lock(&Giant);
ke->ke_tdspare = thread_alloc();
mtx_unlock(&Giant);
}
if (td->td_flags & TDF_UNBOUND) {
/*

View File

@ -436,9 +436,7 @@ thread_userret(struct proc *p, struct ksegrp *kg, struct kse *ke,
int error = 0;
if (ke->ke_tdspare == NULL) {
mtx_lock(&Giant);
ke->ke_tdspare = thread_alloc();
mtx_unlock(&Giant);
}
if (td->td_flags & TDF_UNBOUND) {
/*