svn commit: r240840 - stable/8/sys/kern
Andriy Gapon
avg at FreeBSD.org
Sat Sep 22 21:19:50 UTC 2012
Author: avg
Date: Sat Sep 22 21:19:49 2012
New Revision: 240840
URL: http://svn.freebsd.org/changeset/base/240840
Log:
MFC r240513: sched_ule: fix inverted condition in reporting of priority
lending via ktr
Modified:
stable/8/sys/kern/sched_ule.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/kern/ (props changed)
Modified: stable/8/sys/kern/sched_ule.c
==============================================================================
--- stable/8/sys/kern/sched_ule.c Sat Sep 22 21:18:30 2012 (r240839)
+++ stable/8/sys/kern/sched_ule.c Sat Sep 22 21:19:49 2012 (r240840)
@@ -1599,7 +1599,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
mailing list