aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>2012-03-09 01:41:53 -0500
committerDan Williams <dan.j.williams@intel.com>2012-05-17 17:33:38 -0400
commitd80ecd5726ce49b5da457d562804b40f0183e8f7 (patch)
treebc3d6218f40d014f69edc3467c22fc533e269aa0
parent83884014eaaa68834ced39d1c75f1bc20d618ec0 (diff)
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: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--drivers/scsi/isci/task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index 9b8632f33dd9..26de06ef688e 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -842,10 +842,10 @@ int isci_task_lu_reset(struct domain_device *dev, u8 *lun)
842 __func__, dev, ihost, isci_device); 842 __func__, dev, ihost, isci_device);
843 843
844 if (!isci_device) { 844 if (!isci_device) {
845 /* If the device is gone, stop the escalations. */ 845 /* If the device is gone, escalate to I_T_Nexus_Reset. */
846 dev_dbg(&ihost->pdev->dev, "%s: No dev\n", __func__); 846 dev_dbg(&ihost->pdev->dev, "%s: No dev\n", __func__);
847 847
848 ret = TMF_RESP_FUNC_COMPLETE; 848 ret = TMF_RESP_FUNC_FAILED;
849 goto out; 849 goto out;
850 } 850 }
851 if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) { 851 if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) {