1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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>.
This commit is contained in:
Adrian Chadd 2014-06-01 04:11:05 +00:00
parent 7bfe91e85c
commit 924aaf69ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266939

View File

@ -538,7 +538,7 @@ _taskqueue_start_threads(struct taskqueue **tqp, int count, int pri,
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.