svn commit: r230070 - stable/8/sys/kern

John Baldwin jhb at FreeBSD.org
Fri Jan 13 18:58:32 UTC 2012


Author: jhb
Date: Fri Jan 13 18:58:31 2012
New Revision: 230070
URL: http://svn.freebsd.org/changeset/base/230070

Log:
  MFC 229622:
  Fix a logic bug in change 228207 in the check for a thread's new user
  priority being a realtime priority.

Modified:
  stable/8/sys/kern/kern_resource.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/kern/kern_resource.c
==============================================================================
--- stable/8/sys/kern/kern_resource.c	Fri Jan 13 18:58:15 2012	(r230069)
+++ stable/8/sys/kern/kern_resource.c	Fri Jan 13 18:58:31 2012	(r230070)
@@ -506,7 +506,7 @@ rtp_to_pri(struct rtprio *rtp, struct th
 	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) {
 		thread_unlock(td);


More information about the svn-src-stable-8 mailing list