From: Paul E. McKenney Date: Wed, 9 Oct 2013 22:20:33 +0000 (-0700) Subject: rcu: Let the world know when RCU adjusts its geometry X-Git-Tag: v3.14-rc1~174^2^2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3947909814f38d524829bc41bd4c11068a15f0cd;p=kernel%2Fkernel-generic.git 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 --- diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 518e084..3049950 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3391,6 +3391,8 @@ static void __init rcu_init_geometry(void) if (rcu_fanout_leaf == CONFIG_RCU_FANOUT_LEAF && nr_cpu_ids == NR_CPUS) return; + pr_info("RCU: Adjusting geometry for rcu_fanout_leaf=%d, nr_cpu_ids=%d\n", + rcu_fanout_leaf, nr_cpu_ids); /* * Compute number of nodes that can be handled an rcu_node tree