rcu,cleanup: simplify the code when cpu is dying
authorLai Jiangshan <laijs@cn.fujitsu.com>
Wed, 20 Oct 2010 06:13:06 +0000 (14:13 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 30 Nov 2010 06:01:58 +0000 (22:01 -0800)
commit29494be71afe2a16ad04e344306a620d7cc22d06
treed16a2acd1566be326483d5217d39b78d2ef798c5
parent7b27d5475f86186914e54e4a6bb994e9a985337b
rcu,cleanup: simplify the code when cpu is dying

When we handle the CPU_DYING notifier, the whole system is stopped except
for the current CPU.  We therefore need no synchronization with the other
CPUs.  This allows us to move any orphaned RCU callbacks directly to the
list of any online CPU without needing to run them through the global
orphan lists.  These global orphan lists can therefore be dispensed with.
This commit makes thes changes, though currently victimizes CPU 0 @@@.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c
kernel/rcutree.h
kernel/rcutree_plugin.h
kernel/rcutree_trace.c