Commit d80ecd57 authored by Jeff Skirvin's avatar Jeff Skirvin Committed by Dan Williams

isci: Escalate to I_T_Nexus_Reset when the device is gone.

If LUN reset sees that the device is gone, it returns TMF_RESP_FUNC_FAILED
to cause libsas to escalate to an I_T_Nexus_Reset.
Signed-off-by: default avatarJeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 83884014
...@@ -842,10 +842,10 @@ int isci_task_lu_reset(struct domain_device *dev, u8 *lun) ...@@ -842,10 +842,10 @@ int isci_task_lu_reset(struct domain_device *dev, u8 *lun)
__func__, dev, ihost, isci_device); __func__, dev, ihost, isci_device);
if (!isci_device) { if (!isci_device) {
/* If the device is gone, stop the escalations. */ /* If the device is gone, escalate to I_T_Nexus_Reset. */
dev_dbg(&ihost->pdev->dev, "%s: No dev\n", __func__); dev_dbg(&ihost->pdev->dev, "%s: No dev\n", __func__);
ret = TMF_RESP_FUNC_COMPLETE; ret = TMF_RESP_FUNC_FAILED;
goto out; goto out;
} }
if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) { if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) {
......
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