Skip to content
Snippets Groups Projects
user avatar
MLK-19455 tick/nohz: Prevent bogus softirq pending warning
Thomas Gleixner authored
Commit 0a0e0829 ("nohz: Fix missing tick reprogram when interrupting an
inline softirq") got backported to stable trees and now causes the NOHZ
softirq pending warning to trigger. It's not an upstream issue as the NOHZ
update logic has been changed there.

The problem is when a softirq disabled section gets interrupted and on
return from interrupt the tick/nohz state is evaluated, which then can
observe pending soft interrupts. These soft interrupts are legitimately
pending because they cannot be processed as long as soft interrupts are
disabled and the interrupted code will correctly process them when soft
interrupts are reenabled.

Add a check for softirqs disabled to the pending check to prevent the
warning.

Reported-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Reported-by: default avatarJohn Crispin <john@phrozen.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Tested-by: default avatarJohn Crispin <john@phrozen.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org
Acked-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>

Signed-off-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
Acked-by: default avatarJason Liu <Jason.hui.liu@nxp.com>
Signed-off-by: default avatarArulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
3867666e