Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2010 21:33:17 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r216449 - stable/7/sys/dev/cxgb
Message-ID:  <201012142133.oBELXHXx031289@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Dec 14 21:33:17 2010
New Revision: 216449
URL: http://svn.freebsd.org/changeset/base/216449

Log:
  When the per-queueset transmit kthread is idle, do not pass a sleep
  priority of '1' to tsleep().  This caused the priority of this kthread to
  be raised higher than every other thread in the system.  Instead, leave
  the priority of the kthread at its existing level.
  
  This is a direct commit to stable/7 as this code is no longer present in
  8.x and later.
  
  Reviewed by:	np
  Approved by:	re (kib)

Modified:
  stable/7/sys/dev/cxgb/cxgb_multiq.c

Modified: stable/7/sys/dev/cxgb/cxgb_multiq.c
==============================================================================
--- stable/7/sys/dev/cxgb/cxgb_multiq.c	Tue Dec 14 20:57:40 2010	(r216448)
+++ stable/7/sys/dev/cxgb/cxgb_multiq.c	Tue Dec 14 21:33:17 2010	(r216449)
@@ -624,7 +624,7 @@ cxgb_pcpu_start_proc(void *arg)
 			continue;
 		}
 	done:	
-		tsleep(qs, 1, "cxgbidle", idleticks);
+		tsleep(qs, 0, "cxgbidle", idleticks);
 	}
 
 	if (bootverbose)



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