]> Pileus Git - ~andy/linux/commitdiff
isci: Escalate to I_T_Nexus_Reset when the device is gone.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Fri, 9 Mar 2012 06:41:53 +0000 (22:41 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 May 2012 21:33:38 +0000 (14:33 -0700)
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>
drivers/scsi/isci/task.c

index 9b8632f33dd95e8a5f2f647fc813f472238f9ca7..26de06ef688e3217ebd0a0a469f9430681a79bbf 100644 (file)
@@ -842,10 +842,10 @@ int isci_task_lu_reset(struct domain_device *dev, u8 *lun)
                __func__, dev, ihost, 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__);
 
-               ret = TMF_RESP_FUNC_COMPLETE;
+               ret = TMF_RESP_FUNC_FAILED;
                goto out;
        }
        if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) {