Skip to content

Commit

Permalink
isci: Escalate to I_T_Nexus_Reset when the device is gone.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Skirvin authored and Dan Williams committed May 17, 2012
1 parent 8388401 commit d80ecd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/isci/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d80ecd5

Please sign in to comment.