]> asedeno.scripts.mit.edu Git - linux.git/commit
genirq: Free irq_desc with rcu
authorThomas Gleixner <tglx@linutronix.de>
Sun, 13 Dec 2015 17:02:22 +0000 (18:02 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 14 Dec 2015 09:03:46 +0000 (10:03 +0100)
commit425a5072dcd1bd895eea90a6b495392b6358ebd0
tree312ffe3eee07e6fd1ae14732b2d67273df053548
parentf0cb32207307e9d7b3ee8117078b7a37f8d0166e
genirq: Free irq_desc with rcu

The new VMD device driver needs to iterate over a list of
"demultiplexing" interrupts. Protecting that list with a lock is not
possible because the list is also required in code pathes which hold
irq descriptor lock. Therefor the demultiplexing interrupt handler
would create a lock inversion scenario if it calls a demux handler
with the list protection lock held.

A solution for this is to free the irq descriptor via RCU, so the
list can be walked with rcu read lock held.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Keith Busch <keith.busch@intel.com>
include/linux/irqdesc.h
kernel/irq/irqdesc.c