sched: fix an incorrect comparison in sched_lend_user_prio_cond

Compare with sched_lend_user_prio.
This commit is contained in:
Mateusz Guzik 2020-11-15 01:54:44 +00:00
parent 6b45dbe56c
commit b77594bbbf
2 changed files with 2 additions and 2 deletions

View File

@ -952,7 +952,7 @@ sched_lend_user_prio_cond(struct thread *td, u_char prio)
goto lend;
if (td->td_user_pri != min(prio, td->td_base_user_pri))
goto lend;
if (td->td_priority >= td->td_user_pri)
if (td->td_priority != td->td_user_pri)
goto lend;
return;

View File

@ -1900,7 +1900,7 @@ sched_lend_user_prio_cond(struct thread *td, u_char prio)
goto lend;
if (td->td_user_pri != min(prio, td->td_base_user_pri))
goto lend;
if (td->td_priority >= td->td_user_pri)
if (td->td_priority != td->td_user_pri)
goto lend;
return;