Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jun 2014 04:11:05 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266939 - head/sys/kern
Message-ID:  <201406010411.s514B6H7016477@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Jun  1 04:11:05 2014
New Revision: 266939
URL: http://svnweb.freebsd.org/changeset/base/266939

Log:
  Pin the right thread.
  
  This _was_ right, a last minute suggestion and not enough testing makes
  Adrian a bad boy.
  
  Tested:
  
  * igb(4) with RSS patches, by hand verifying each igb(4) taskqueue
    tid from procstat -ka using cpuset -g -t <tid>.

Modified:
  head/sys/kern/subr_taskqueue.c

Modified: head/sys/kern/subr_taskqueue.c
==============================================================================
--- head/sys/kern/subr_taskqueue.c	Sun Jun  1 04:08:45 2014	(r266938)
+++ head/sys/kern/subr_taskqueue.c	Sun Jun  1 04:11:05 2014	(r266939)
@@ -538,7 +538,7 @@ _taskqueue_start_threads(struct taskqueu
 			continue;
 		td = tq->tq_threads[i];
 		if (mask) {
-			error = cpuset_setthread(curthread->td_tid, mask);
+			error = cpuset_setthread(td->td_tid, mask);
 			/*
 			 * Failing to pin is rarely an actual fatal error;
 			 * it'll just affect performance.



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