mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
- 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
2 changed files with 0 additions and 4 deletions
|
|
@ -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 a new issue