Skip to content
Commit 425a5072 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Keith Busch <keith.busch@intel.com>
parent f0cb3220
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment