projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2af391
)
scsi: mpt3sas: Don't call disable_irq from IRQ poll handler
author
Tomas Henzl
<thenzl@redhat.com>
Tue, 1 Sep 2020 14:50:26 +0000
(16:50 +0200)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 3 Sep 2020 02:36:05 +0000
(22:36 -0400)
disable_irq() might sleep, replace it with disable_irq_nosync(). For
synchronisation 'irq_poll_scheduled' is sufficient
Fixes:
320e77acb3
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>
drivers/scsi/mpt3sas/mpt3sas_base.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mpt3sas/mpt3sas_base.c
b/drivers/scsi/mpt3sas/mpt3sas_base.c
index
1d64524
..
5850569
100644
(file)
--- a/
drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/
drivers/scsi/mpt3sas/mpt3sas_base.c
@@
-1733,7
+1733,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);