]> git.karo-electronics.de Git - karo-tx-linux.git/commit
genirq: Avoid deadlock in spurious handling
authorThomas Gleixner <tglx@linutronix.de>
Fri, 23 Nov 2012 09:08:44 +0000 (10:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:28 +0000 (05:38 -0800)
commita657c66d3ba73cc84201d8fe62adf7e7d97f71df
tree45c8f867777756ef780ad4db30ff7cf6fcf275f5
parent57eb4c95dff59038eb6223dc7696c93b045c4c3f
genirq: Avoid deadlock in spurious handling

commit e716efde75267eab919cdb2bef5b2cb77f305326 upstream.

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>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/spurious.c