irq_work: Warn if there's still work on cpu_down
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 15 Nov 2012 17:52:44 +0000 (12:52 -0500)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 17 Nov 2012 18:31:16 +0000 (19:31 +0100)
commit8aa2accee41f7045dc904fa41d4475b2f6ffae3e
tree506c64cc0ceefb1265de57985000fd9cb61b1418
parentc0e980a4bd7fc5c9b748f2f0209d2a48c0fdf0ab
irq_work: Warn if there's still work on cpu_down

If we are in nohz and there's still irq_work to be done when the idle
task is about to go offline, give a nasty warning. Everything should
have been flushed from the CPU_DYING notifier already. Further attempts
to enqueue an irq_work are buggy because irqs are disabled by
__cpu_disable(). The best we can do is to report the issue to the user.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/irq_work.c