svn commit: r266939 - head/sys/kern
Adrian Chadd
adrian at FreeBSD.org
Sun Jun 1 04:11:06 UTC 2014
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.
More information about the svn-src-all
mailing list