aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-10-09 18:20:33 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-03 13:10:19 -0500
commit3947909814f38d524829bc41bd4c11068a15f0cd (patch)
tree6bc166cc6eb9859ae608378cb63b3fd870295a8f /kernel/rcu
parent4461212aa0c604c5214856f0ae10a2b335f7e73a (diff)
rcu: Let the world know when RCU adjusts its geometry
Some RCU bugs have been specific to the layout of the rcu_node tree, but RCU will silently adjust the tree at boot time if appropriate. This obscures valuable debugging information, so print a message when this happens. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 518e08428b2e..30499508c72e 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -3391,6 +3391,8 @@ static void __init rcu_init_geometry(void)
3391 if (rcu_fanout_leaf == CONFIG_RCU_FANOUT_LEAF && 3391 if (rcu_fanout_leaf == CONFIG_RCU_FANOUT_LEAF &&
3392 nr_cpu_ids == NR_CPUS) 3392 nr_cpu_ids == NR_CPUS)
3393 return; 3393 return;
3394 pr_info("RCU: Adjusting geometry for rcu_fanout_leaf=%d, nr_cpu_ids=%d\n",
3395 rcu_fanout_leaf, nr_cpu_ids);
3394 3396
3395 /* 3397 /*
3396 * Compute number of nodes that can be handled an rcu_node tree 3398 * Compute number of nodes that can be handled an rcu_node tree