Fix a bug in r355784. I missed a sched_add() call that needed to reacquire

the thread lock.

Reported by:	mjg
This commit is contained in:
Jeff Roberson 2019-12-19 18:22:11 +00:00
parent 3bac34907e
commit d8d5f03610
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355915

View File

@ -2689,7 +2689,7 @@ sched_affinity(struct thread *td)
return;
if (TD_ON_RUNQ(td)) {
sched_rem(td);
sched_add(td, SRQ_BORING);
sched_add(td, SRQ_BORING | SRQ_HOLDTD);
return;
}
if (!TD_IS_RUNNING(td))