Skip to content

Commit b614d55

Browse files
thenzlmartinkpetersen
authored andcommitted
scsi: mpt3sas: Don't call disable_irq from IRQ poll handler
disable_irq() might sleep, replace it with disable_irq_nosync(). For synchronisation 'irq_poll_scheduled' is sufficient Fixes: 320e77a scsi: mpt3sas: Irq poll to avoid CPU hard lockups Link: https://lore.kernel.org/r/20200901145026.12174-1-thenzl@redhat.com Signed-off-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent d2af391 commit b614d55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/mpt3sas/mpt3sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ _base_irqpoll(struct irq_poll *irqpoll, int budget)
17331733
reply_q = container_of(irqpoll, struct adapter_reply_queue,
17341734
irqpoll);
17351735
if (reply_q->irq_line_enable) {
1736-
disable_irq(reply_q->os_irq);
1736+
disable_irq_nosync(reply_q->os_irq);
17371737
reply_q->irq_line_enable = false;
17381738
}
17391739
num_entries = _base_process_reply_queue(reply_q);

0 commit comments

Comments
 (0)