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:
Shivasharan S 2018-06-04 03:45:09 -07:00 committed by Martin K. Petersen
parent 2cd4bf89f7
commit 2747e6be4c
1 changed files with 3 additions and 2 deletions

View File

@ -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;
} }