]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
rcu: Fix FIXME in rcu_tasks_kthread()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 27 Oct 2014 23:04:35 +0000 (16:04 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 13 Nov 2014 18:35:41 +0000 (10:35 -0800)
This commit affines rcu_tasks_kthread() to the housekeeping CPUs
in CONFIG_NO_HZ_FULL builds.  This is just a default, so systems
administrators are free to put this kthread somewhere else if they wish.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/update.c

index 3ef8ba58694e95190e326986a252a276c9d721ed..8a39e68ff8e0df6325947ce28a7f6ca06984ec9b 100644 (file)
@@ -531,7 +531,8 @@ static int __noreturn rcu_tasks_kthread(void *arg)
        struct rcu_head *next;
        LIST_HEAD(rcu_tasks_holdouts);
 
-       /* FIXME: Add housekeeping affinity. */
+       /* Run on housekeeping CPUs by default.  Sysadm can move if desired. */
+       housekeeping_affine(current);
 
        /*
         * Each pass through the following loop makes one check for