aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paul.mckenney@linaro.org>2011-11-22 23:43:02 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-12-11 13:32:02 -0500
commitf535a607c13c7b674e0788ca5765779aa74a01c3 (patch)
tree433a07d16ff11d9f67e7991831cebf3cadfd9939 /kernel/rcutree.c
parent84ad00cb61f1cb21f0b63bc6f7dc254399eb3830 (diff)
rcu: Eliminate RCU_FAST_NO_HZ grace-period hang
With the new implementation of RCU_FAST_NO_HZ, it was possible to hang RCU grace periods as follows: o CPU 0 attempts to go idle, cycles several times through the rcu_prepare_for_idle() loop, then goes dyntick-idle when RCU needs nothing more from it, while still having at least on RCU callback pending. o CPU 1 goes idle with no callbacks. Both CPUs can then stay in dyntick-idle mode indefinitely, preventing the RCU grace period from ever completing, possibly hanging the system. This commit therefore prevents CPUs that have RCU callbacks from entering dyntick-idle mode. This approach also eliminates the need for the end-of-grace-period IPIs used previously. Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 7fb8b0e60811..13fab4a9f9fb 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -1086,7 +1086,6 @@ static void rcu_report_qs_rsp(struct rcu_state *rsp, unsigned long flags)
1086 * callbacks are waiting on the grace period that just now 1086 * callbacks are waiting on the grace period that just now
1087 * completed. 1087 * completed.
1088 */ 1088 */
1089 rcu_schedule_wake_gp_end();
1090 if (*rdp->nxttail[RCU_WAIT_TAIL] == NULL) { 1089 if (*rdp->nxttail[RCU_WAIT_TAIL] == NULL) {
1091 raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */ 1090 raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */
1092 1091
@@ -1672,7 +1671,6 @@ static void rcu_process_callbacks(struct softirq_action *unused)
1672 &__get_cpu_var(rcu_sched_data)); 1671 &__get_cpu_var(rcu_sched_data));
1673 __rcu_process_callbacks(&rcu_bh_state, &__get_cpu_var(rcu_bh_data)); 1672 __rcu_process_callbacks(&rcu_bh_state, &__get_cpu_var(rcu_bh_data));
1674 rcu_preempt_process_callbacks(); 1673 rcu_preempt_process_callbacks();
1675 rcu_wake_cpus_for_gp_end();
1676 trace_rcu_utilization("End RCU core"); 1674 trace_rcu_utilization("End RCU core");
1677} 1675}
1678 1676