Commit d2af3914 authored by Tomas Henzl's avatar Tomas Henzl Committed by Martin K. Petersen

scsi: megaraid_sas: Don't call disable_irq from process IRQ poll

disable_irq() might sleep. Replace it with disable_irq_nosync() which is
sufficient as irq_poll_scheduled protects against concurrently running
complete_cmd_fusion() from megasas_irqpoll() and megasas_isr_fusion().

Link: https://lore.kernel.org/r/20200827165332.8432-1-thenzl@redhat.com
Fixes: a6ffd5bf scsi: megaraid_sas: Call disable_irq from process IRQ poll
Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ed43ffea
...@@ -3689,7 +3689,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget) ...@@ -3689,7 +3689,7 @@ int megasas_irqpoll(struct irq_poll *irqpoll, int budget)
instance = irq_ctx->instance; instance = irq_ctx->instance;
if (irq_ctx->irq_line_enable) { if (irq_ctx->irq_line_enable) {
disable_irq(irq_ctx->os_irq); disable_irq_nosync(irq_ctx->os_irq);
irq_ctx->irq_line_enable = false; irq_ctx->irq_line_enable = false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment