mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
unlock sched_lock at right time.
This commit is contained in:
parent
5adbdf5429
commit
5073e68fa3
2 changed files with 2 additions and 2 deletions
|
|
@ -1681,9 +1681,9 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
|||
else
|
||||
upcalls += kg2->kg_numupcalls;
|
||||
}
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
if (upcalls >= max_threads_per_proc)
|
||||
break;
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
p->p_maxthrwaits++;
|
||||
msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
|
||||
"maxthreads", NULL);
|
||||
|
|
|
|||
|
|
@ -1681,9 +1681,9 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
|||
else
|
||||
upcalls += kg2->kg_numupcalls;
|
||||
}
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
if (upcalls >= max_threads_per_proc)
|
||||
break;
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
p->p_maxthrwaits++;
|
||||
msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
|
||||
"maxthreads", NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue