Fix a typo in my previous commit

Somehow in the late stages of testing my sched_ule patch, a character was
accidentally deleted from the file.  Correct this.

While I'm committing anyway, the previous commit message requires some
clarification: in the normal case of unlending priority after releasing
a mutex, the thread that was doing the lending will be woken up and
immediately become the highest-priority thread, and in that case no
priority inversion would take place.  However, if that thread is pinned
to a different CPU, then the currently running thread that just had its
priority lowered will not be preempted and then priority inversion can
occur.

Reported by:	O. Hartmann (typo), jhb (scheduler clarification)
MFC after:	1 month
Pointy hat to:	rstone
This commit is contained in:
Ryan Stone 2017-02-16 20:06:21 +00:00
parent 955255728c
commit 3600f4ba35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313816

View File

@ -1047,7 +1047,7 @@ tdq_notify(struct tdq *tdq, int pri)
if (tdq->tdq_ipipending)
return;
cpu = TD_ID(tdq);
cpu = TDQ_ID(tdq);
ctd = pcpu_find(cpu)->pc_curthread;
if (!sched_shouldpreempt(pri, ctd->td_priority, 1))
return;