svn commit: r240839 - stable/9/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sat Sep 22 21:18:31 UTC 2012
Author: avg
Date: Sat Sep 22 21:18:30 2012
New Revision: 240839
URL: http://svn.freebsd.org/changeset/base/240839
Log:
MFC r240513: sched_ule: fix inverted condition in reporting of priority
lending via ktr
Modified:
stable/9/sys/kern/sched_ule.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/sched_ule.c
==============================================================================
--- stable/9/sys/kern/sched_ule.c Sat Sep 22 21:14:53 2012 (r240838)
+++ stable/9/sys/kern/sched_ule.c Sat Sep 22 21:18:30 2012 (r240839)
@@ -1647,7 +1647,7 @@ sched_thread_priority(struct thread *td,
"prio:%d", td->td_priority, "new prio:%d", prio,
KTR_ATTR_LINKED, sched_tdname(curthread));
SDT_PROBE3(sched, , , change_pri, td, td->td_proc, prio);
- if (td != curthread && prio > td->td_priority) {
+ if (td != curthread && prio < td->td_priority) {
KTR_POINT3(KTR_SCHED, "thread", sched_tdname(curthread),
"lend prio", "prio:%d", td->td_priority, "new prio:%d",
prio, KTR_ATTR_LINKED, sched_tdname(td));
More information about the svn-src-stable-9
mailing list