genirq: Avoid deadlock in spurious handling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 23 Nov 2012 09:08:44 +0000 (10:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 11 Dec 2012 11:25:30 +0000 (12:25 +0100)
commite716efde75267eab919cdb2bef5b2cb77f305326
tree7af4b7266b29a7a0268fcf68cb5f3a8c23405dd3
parent04aa530ec04f61875b99c12721162e2964e3318c
genirq: Avoid deadlock in spurious handling

commit 52553ddf(genirq: fix regression in irqfixup, irqpoll)
introduced a potential deadlock by calling the action handler with the
irq descriptor lock held.

Remove the call and let the handling code run even for an interrupt
where only a single action is registered. That matches the goal of
the above commit and avoids the deadlock.

Document the confusing action = desc->action reload in the handling
loop while at it.

Reported-and-tested-by: "Wang, Warner" <warner.wang@hp.com>
Tested-by: Edward Donovan <edward.donovan@numble.net>
Cc: "Wang, Song-Bo (Stoney)" <song-bo.wang@hp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/spurious.c