- 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:
parent
c2eda4b565
commit
c0854cd341
@ -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) {
|
||||
/*
|
||||
|
@ -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) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user