Commit 2747e6be authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen

scsi: megaraid_sas: Do not do Kill adapter if GET_CTRL_INFO times out

If MR_DCMD_CTRL_GET_INFO DCMD timed out, return failure rather than doing
kill adapter.
Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 2cd4bf89
...@@ -4755,15 +4755,16 @@ megasas_get_ctrl_info(struct megasas_instance *instance) ...@@ -4755,15 +4755,16 @@ megasas_get_ctrl_info(struct megasas_instance *instance)
__func__, __LINE__); __func__, __LINE__);
break; break;
} }
break;
case DCMD_FAILED: case DCMD_FAILED:
megaraid_sas_kill_hba(instance); megaraid_sas_kill_hba(instance);
break; break;
} }
if (ret != DCMD_TIMEOUT)
megasas_return_cmd(instance, cmd); megasas_return_cmd(instance, cmd);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment