1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

Fix a logic bug in change 228207 in the check for a thread's new user

priority being a realtime priority.

MFC after:	3 days
This commit is contained in:
John Baldwin 2012-01-05 19:02:52 +00:00
parent 137f91e80f
commit 948c460971
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229622

View File

@ -497,7 +497,7 @@ rtp_to_pri(struct rtprio *rtp, struct thread *td)
oldpri = td->td_user_pri;
sched_user_prio(td, newpri);
if (td->td_user_pri != oldpri && (td == curthread ||
td->td_priority == oldpri || td->td_user_pri >= PRI_MAX_REALTIME))
td->td_priority == oldpri || td->td_user_pri <= PRI_MAX_REALTIME))
sched_prio(td, td->td_user_pri);
if (TD_ON_UPILOCK(td) && oldpri != newpri) {
critical_enter();