Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: hv: Use tasklet_disable_in_atomic()

The hv_compose_msi_msg() callback in irq_chip::irq_compose_msi_msg is
invoked via irq_chip_compose_msi_msg(), which itself is always invoked from
atomic contexts from the guts of the interrupt core code.

There is no way to change this w/o rewriting the whole driver, so use
tasklet_disable_in_atomic() which allows to make tasklet_disable()
sleepable once the remaining atomic users are addressed.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Wei Liu <wei.liu@kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210309084242.516519290@linutronix.de

authored by

Sebastian Andrzej Siewior and committed by
Thomas Gleixner
be4017ce 405698ca

+1 -1
+1 -1
drivers/pci/controller/pci-hyperv.c
··· 1458 1458 * Prevents hv_pci_onchannelcallback() from running concurrently 1459 1459 * in the tasklet. 1460 1460 */ 1461 - tasklet_disable(&channel->callback_event); 1461 + tasklet_disable_in_atomic(&channel->callback_event); 1462 1462 1463 1463 /* 1464 1464 * Since this function is called with IRQ locks held, can't