From: Frederic Weisbecker When a CPU in adaptive nohz mode doesn't respond to complete a grace period, issue it a specific IPI so that it restarts the tick and chases a quiescent state. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: Chris Metcalf Cc: Christoph Lameter Cc: Daniel Lezcano Cc: Geoff Levand Cc: Gilad Ben Yossef Cc: Hakan Akkan Cc: Ingo Molnar Cc: Kevin Hilman Cc: Max Krasnyansky Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Stephen Hemminger Cc: Steven Rostedt Cc: Sven-Thorsten Dietrich Cc: Thomas Gleixner Signed-off-by: Steven Rostedt --- kernel/rcutree.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 0dca81f..21664a3 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -53,6 +53,7 @@ #include #include #include +#include #include "rcutree.h" #include @@ -798,6 +799,20 @@ static int dyntick_save_progress_counter(struct rcu_data *rdp) return (rdp->dynticks_snap & 0x1) == 0; } +static void cpuset_update_rcu_cpu(int cpu) +{ +#ifdef CONFIG_CPUSETS_NO_HZ + unsigned long flags; + + local_irq_save(flags); + + if (cpuset_cpu_adaptive_nohz(cpu)) + smp_cpuset_update_nohz(cpu); + + local_irq_restore(flags); +#endif +} + /* * Return true if the specified CPU has passed through a quiescent * state by virtue of being in or having passed through an dynticks @@ -845,6 +860,9 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp) rdp->offline_fqs++; return 1; } + + cpuset_update_rcu_cpu(rdp->cpu); + return 0; } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/