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: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
2cd4bf89f7
commit
2747e6be4c
|
@ -4755,14 +4755,15 @@ megasas_get_ctrl_info(struct megasas_instance *instance)
|
|||
__func__, __LINE__);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case DCMD_FAILED:
|
||||
megaraid_sas_kill_hba(instance);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
megasas_return_cmd(instance, cmd);
|
||||
|
||||
if (ret != DCMD_TIMEOUT)
|
||||
megasas_return_cmd(instance, cmd);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue