From owner-svn-src-head@FreeBSD.ORG Sun Jun 1 04:11:06 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 44A311B0; Sun, 1 Jun 2014 04:11:06 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2587B2B9E; Sun, 1 Jun 2014 04:11:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s514B6nC016478; Sun, 1 Jun 2014 04:11:06 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s514B6H7016477; Sun, 1 Jun 2014 04:11:06 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201406010411.s514B6H7016477@svn.freebsd.org> From: Adrian Chadd Date: Sun, 1 Jun 2014 04:11:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266939 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2014 04:11:06 -0000 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 . 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.