The quilt patch titled Subject: kernel/irq/manage.c: disable_irq() might sleep. has been removed from the -mm tree. Its filename was kernel-irq-managec-disable_irq-might-sleep.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> Subject: kernel/irq/manage.c: disable_irq() might sleep. Date: Fri, 16 Dec 2022 16:04:41 +0100 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 a might_sleep() to catch any offenders. Link: https://lkml.kernel.org/r/20221216150441.200533-3-manfred@xxxxxxxxxxxxxxxx Fixes: 3aa551c9b4c4 ("genirq: add threaded interrupt handler support") Signed-off-by: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "Sverdlin, Alexander" <alexander.sverdlin@xxxxxxxxxxx> Cc: <1vier1@xxxxxx> Cc: "Sun, Jiebin" <jiebin.sun@xxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/kernel/irq/manage.c~kernel-irq-managec-disable_irq-might-sleep +++ a/kernel/irq/manage.c @@ -723,10 +723,13 @@ EXPORT_SYMBOL(disable_irq_nosync); * to complete before returning. If you use this function while * holding a resource the IRQ handler may need you will deadlock. * - * This function may be called - with care - from IRQ context. + * Can only be called from preemptible code as it might sleep when + * an interrupt thread is associated to @irq. + * */ void disable_irq(unsigned int irq) { + might_sleep(); if (!__disable_irq_nosync(irq)) synchronize_irq(irq); } _ Patches currently in -mm which might be from manfred@xxxxxxxxxxxxxxxx are lib-percpu_counter-percpu_counter_add_batch-overflow-underflow.patch include-linux-percpu_counterh-race-in-uniprocessor-percpu_counter_add.patch