diff mbox series

[SRU,J/M/N,1/2] scsi: megaraid_sas: Log message when controller reset is requested but not issued

Message ID 20240307215717.14585-2-michael.reed@canonical.com
State New
Headers show
Series 22.04.04: megaraid_sas: Critical Bug Fixes | expand

Commit Message

Michael Reed March 7, 2024, 9:57 p.m. UTC
From: Chandrakanth patil <chandrakanth.patil@broadcom.com>

BugLink: https://bugs.launchpad.net/bugs/2046722

The driver now includes the print message 'IO is completed, no reset is
required' when a reset is requested but not issued. This message is
displayed only when pending SCSI IO is completed before issuing the reset.

Signed-off-by: Chandrakanth patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com>
Link: https://lore.kernel.org/r/20231003110021.168862-3-chandrakanth.patil@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 2d83fb023c90d4db3ada82f12951cb0c69be9cbc)
Signed-off-by: Michael Reed <Michael.Reed@canonical.com>
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 17dd9cb00369..adb46e7bf582 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -4234,6 +4234,9 @@  megasas_wait_for_outstanding_fusion(struct megasas_instance *instance,
 	}
 
 out:
+	if (!retval && reason == SCSIIO_TIMEOUT_OCR)
+		dev_info(&instance->pdev->dev, "IO is completed, no OCR is required\n");
+
 	return retval;
 }