Thread (5 messages) 5 messages, 4 authors, 2018-09-27

Re: [PATCH stable] tick/nohz: Prevent bogus softirq pending warning

From: Frederic Weisbecker <frederic@kernel.org>
Date: 2018-08-30 15:13:00
Also in: lkml

On Thu, Aug 30, 2018 at 05:05:19PM +0200, Thomas Gleixner wrote:
Commit 0a0e0829f990 ("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: Grygorii Strashko <grygorii.strashko@ti.com>
Reported-by: John Crispin <john@phrozen.org>
Signed-off-by: Thomas Gleixner <redacted>
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Tested-by: John Crispin <john@phrozen.org>
Acked-by: Frederic Weisbecker <frederic@kernel.org>

Thanks for cooking the patch!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help