mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
don't reduce new thread's refcount if current thread can not set cpuset
for it, since the new thread will reduce it by itself.
This commit is contained in:
parent
519e8d87bb
commit
c8a4eae56f
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ out:
|
|||
if (ret) {
|
||||
THREAD_LIST_LOCK(curthread);
|
||||
new_thread->tlflags |= TLFLAGS_DETACHED;
|
||||
_thr_ref_delete_unlocked(curthread, new_thread);
|
||||
THR_GCLIST_ADD(new_thread);
|
||||
THREAD_LIST_UNLOCK(curthread);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue