]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: mpt3sas: Fix timeouts observed while reenabling IRQ
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Mon, 2 Nov 2020 07:27:46 +0000 (12:57 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:22 +0000 (12:06 +0100)
commita0542efaf8903d316f06267f03e1414303e487d6
tree9ec8d2f2686c45d2d73a4b3305cff3dc1e53ba71
parent6ee7168fcdab0b72f187de0ffde23097a2c69d0f
scsi: mpt3sas: Fix timeouts observed while reenabling IRQ

BugLink: https://bugs.launchpad.net/bugs/1905618
[ Upstream commit 5feed64f9199ff90c4239971733f23f30aeb2484 ]

While reenabling the IRQ after irq poll there may be small time window
where HBA firmware has posted some replies and raise the interrupts but
driver has not received the interrupts. So we may observe I/O timeouts as
the driver has not processed the replies as interrupts got missed while
reenabling the IRQ.

To fix this issue the driver has to go for one more round of processing the
reply descriptors from reply descriptor post queue after enabling the IRQ.

Link: https://lore.kernel.org/r/20201102072746.27410-1-sreekanth.reddy@broadcom.com
Reported-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/scsi/mpt3sas/mpt3sas_base.c