Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Sep 2012 21:19:50 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r240840 - stable/8/sys/kern
Message-ID:  <201209222119.q8MLJoGN044756@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209222119.q8MLJoGN044756>