Home
last modified time | relevance | path

Searched hist:"17549 b0f184d870f2cfa4e5cfa79f4c4905ed757" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/kernel/irq/
H A Dmanage.cdiff 17549b0f184d870f2cfa4e5cfa79f4c4905ed757 Fri Dec 16 09:04:41 CST 2022 Manfred Spraul <manfred@colorfullife.com> genirq: Add might_sleep() to disable_irq()

With the introduction of threaded interrupt handlers, it is virtually
never safe to call disable_irq() from non-premptible context.

Thus: Update the documentation, add an explicit might_sleep() to catch any
offenders. This is more obvious and straight forward than the implicit
might_sleep() check deeper down in the disable_irq() call chain.

Fixes: 3aa551c9b4c4 ("genirq: add threaded interrupt handler support")
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221216150441.200533-3-manfred@colorfullife.com