Skip to content

Commit 690e9c3

Browse files
shivasharan-smartinkpetersen
authored andcommitted
scsi: megaraid_sas: Do not re-fire shutdown DCMD after OCR
Signed-off-by: Kashyap Desai <[email protected]> Signed-off-by: Shivasharan S <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Tomas Henzl <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 14298cf commit 690e9c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/scsi/megaraid/megaraid_sas_fusion.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,6 +3624,15 @@ void megasas_refire_mgmt_cmd(struct megasas_instance *instance)
36243624

36253625
if (!smid)
36263626
continue;
3627+
3628+
/* Do not refire shutdown command */
3629+
if (le32_to_cpu(cmd_mfi->frame->dcmd.opcode) ==
3630+
MR_DCMD_CTRL_SHUTDOWN) {
3631+
cmd_mfi->frame->dcmd.cmd_status = MFI_STAT_OK;
3632+
megasas_complete_cmd(instance, cmd_mfi, DID_OK);
3633+
continue;
3634+
}
3635+
36273636
req_desc = megasas_get_request_descriptor
36283637
(instance, smid - 1);
36293638
refire_cmd = req_desc && ((cmd_mfi->frame->dcmd.opcode !=

0 commit comments

Comments
 (0)