diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2010-10-20 02:13:06 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-11-30 01:01:58 -0500 |
commit | 29494be71afe2a16ad04e344306a620d7cc22d06 (patch) | |
tree | d16a2acd1566be326483d5217d39b78d2ef798c5 /kernel/rcutree_plugin.h | |
parent | 7b27d5475f86186914e54e4a6bb994e9a985337b (diff) |
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>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 21df7f3e7273..0de359be5b41 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -774,11 +774,11 @@ static void __cpuinit rcu_preempt_init_percpu_data(int cpu) | |||
774 | } | 774 | } |
775 | 775 | ||
776 | /* | 776 | /* |
777 | * Move preemptable RCU's callbacks to ->orphan_cbs_list. | 777 | * Move preemptable DYING RCU's callbacks to other online CPU. |
778 | */ | 778 | */ |
779 | static void rcu_preempt_send_cbs_to_orphanage(void) | 779 | static void rcu_preempt_send_cbs_to_online(void) |
780 | { | 780 | { |
781 | rcu_send_cbs_to_orphanage(&rcu_preempt_state); | 781 | rcu_send_cbs_to_online(&rcu_preempt_state); |
782 | } | 782 | } |
783 | 783 | ||
784 | /* | 784 | /* |
@@ -1002,7 +1002,7 @@ static void __cpuinit rcu_preempt_init_percpu_data(int cpu) | |||
1002 | /* | 1002 | /* |
1003 | * Because there is no preemptable RCU, there are no callbacks to move. | 1003 | * Because there is no preemptable RCU, there are no callbacks to move. |
1004 | */ | 1004 | */ |
1005 | static void rcu_preempt_send_cbs_to_orphanage(void) | 1005 | static void rcu_preempt_send_cbs_to_online(void) |
1006 | { | 1006 | { |
1007 | } | 1007 | } |
1008 | 1008 | ||