OSDN Git Service

rcu: Remove single-rcu_node optimization in rcu_start_gp()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 11 Jan 2012 19:34:50 +0000 (11:34 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Feb 2012 17:03:38 +0000 (09:03 -0800)
commitf38bd1020f797694b6b5e06f5f06c87688fc84c0
tree3239e0ca21784cf3109933e35db81e2f451a0f8c
parenta50c3af910e06f35bc0c68f89d8fef98c0fec0ea
rcu: Remove single-rcu_node optimization in rcu_start_gp()

The grace-period initialization sequence in rcu_start_gp() has a special
case for systems where the rcu_node tree is a single rcu_node structure.
This made sense some years ago when systems were smaller and up to 64
CPUs could share a single rcu_node structure, but now that large systems
are common and a given leaf rcu_node structure can support only 16 CPUs
(due to lock contention on the rcu_node's ->lock field), this optimization
is almost never taken.  And even the small mobile platforms that might
make use of it might rather have the kernel text reduction.

Therefore, this commit removes the check for single-rcu_node trees.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutree.c