Use cpuset_setithread() to apply cpu mask to taskq threads.

Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-08-07 10:23:50 +00:00
parent d57779868c
commit c60e497af9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269661

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(td->td_tid, mask);
error = cpuset_setithread(td->td_tid, mask);
/*
* Failing to pin is rarely an actual fatal error;
* it'll just affect performance.