提交 690e9c38 编写于 作者: S Shivasharan S 提交者: Martin K. Petersen

scsi: megaraid_sas: Do not re-fire shutdown DCMD after OCR

Signed-off-by: NKashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: NShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 14298cf3
...@@ -3624,6 +3624,15 @@ void megasas_refire_mgmt_cmd(struct megasas_instance *instance) ...@@ -3624,6 +3624,15 @@ void megasas_refire_mgmt_cmd(struct megasas_instance *instance)
if (!smid) if (!smid)
continue; continue;
/* Do not refire shutdown command */
if (le32_to_cpu(cmd_mfi->frame->dcmd.opcode) ==
MR_DCMD_CTRL_SHUTDOWN) {
cmd_mfi->frame->dcmd.cmd_status = MFI_STAT_OK;
megasas_complete_cmd(instance, cmd_mfi, DID_OK);
continue;
}
req_desc = megasas_get_request_descriptor req_desc = megasas_get_request_descriptor
(instance, smid - 1); (instance, smid - 1);
refire_cmd = req_desc && ((cmd_mfi->frame->dcmd.opcode != refire_cmd = req_desc && ((cmd_mfi->frame->dcmd.opcode !=
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册