diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-03 21:15:17 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-06 14:02:47 -0500 |
commit | 3e9f5c70d85060ff0db71826e2048daffec336e7 (patch) | |
tree | db84eacf19f182ce185afa165fe2b1aa1a8569b1 /kernel/rcu | |
parent | 96e92021d4fad8543d598b5e4926cb34fd40c4c4 (diff) |
rcu: Don't spawn rcub kthreads on root rcu_node structure
Now that offlining CPUs no longer moves leaf rcu_node structures'
->blkd_tasks lists to the root, there is no way for the root rcu_node
structure's ->blkd_task list to be nonempty, unless the root node is also
the sole leaf node. This commit therefore refrains from creating an rcub
kthread for the root rcu_node structure unless it is also the sole leaf.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index bcc6d9134d47..3e64bb197b1a 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h | |||
@@ -1352,12 +1352,8 @@ static void __init rcu_spawn_boost_kthreads(void) | |||
1352 | for_each_possible_cpu(cpu) | 1352 | for_each_possible_cpu(cpu) |
1353 | per_cpu(rcu_cpu_has_work, cpu) = 0; | 1353 | per_cpu(rcu_cpu_has_work, cpu) = 0; |
1354 | BUG_ON(smpboot_register_percpu_thread(&rcu_cpu_thread_spec)); | 1354 | BUG_ON(smpboot_register_percpu_thread(&rcu_cpu_thread_spec)); |
1355 | rnp = rcu_get_root(rcu_state_p); | 1355 | rcu_for_each_leaf_node(rcu_state_p, rnp) |
1356 | (void)rcu_spawn_one_boost_kthread(rcu_state_p, rnp); | 1356 | (void)rcu_spawn_one_boost_kthread(rcu_state_p, rnp); |
1357 | if (NUM_RCU_NODES > 1) { | ||
1358 | rcu_for_each_leaf_node(rcu_state_p, rnp) | ||
1359 | (void)rcu_spawn_one_boost_kthread(rcu_state_p, rnp); | ||
1360 | } | ||
1361 | } | 1357 | } |
1362 | 1358 | ||
1363 | static void rcu_prepare_kthreads(int cpu) | 1359 | static void rcu_prepare_kthreads(int cpu) |