Skip to contentSkip to conversation

scsi: mpt3sas: Don't call disable_irq from IRQ poll handler

PATCH Applied Tomas Henzl 2 participants 2 messages Sep 1, 2020 – Sep 3, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: mpt3sas: Don't call disable_irq from IRQ poll handler

disable_irq might sleep, replace it with disable_irq_nosync, for synchronisation is the 'irq_poll_scheduled' sufficient

Fixes 320e77acb3 scsi: mpt3sas: Irq poll to avoid CPU hard lockups
---
 drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +1 -1
index 96b78fdc6..a85c9672c 100644
@@ -1732,7 +1732,7 @@ _base_irqpoll(struct irq_poll *irqpoll, int budget)
 	reply_q = container_of(irqpoll, struct adapter_reply_queue,
 			irqpoll);
 	if (reply_q->irq_line_enable) {
-		disable_irq(reply_q->os_irq);
+		disable_irq_nosync(reply_q->os_irq);
 		reply_q->irq_line_enable = false;
 	}
 	num_entries = _base_process_reply_queue(reply_q);
Signature · 1 line
2.25.4
#1 lore raw
Quoted 4 lines · Tomas Henzl

disable_irq might sleep, replace it with disable_irq_nosync, for synchronisation is the 'irq_poll_scheduled' sufficient

Fixes 320e77acb3 scsi: mpt3sas: Irq poll to avoid CPU hard lockups

Applied to 5.9/scsi-fixes, thanks!

[1/1] scsi: mpt3sas: Don't call disable_irq from IRQ poll handler

      https://git.kernel.org/mkp/scsi/c/b614d55b970d
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering