]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76aa23673b42d02afcd773c8f7fee7a27c7f7774
treed16a2acd1566be326483d5217d39b78d2ef798c5
parentcbe5a9f2c8defc79bd6a0b1c2c1447559698fac3
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