Skip to content

Commit d80ecd5

Browse files
Jeff Skirvindjbw
Jeff Skirvin
authored andcommitted
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 <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 8388401 commit d80ecd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/isci/task.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,10 @@ int isci_task_lu_reset(struct domain_device *dev, u8 *lun)
842842
__func__, dev, ihost, isci_device);
843843

844844
if (!isci_device) {
845-
/* If the device is gone, stop the escalations. */
845+
/* If the device is gone, escalate to I_T_Nexus_Reset. */
846846
dev_dbg(&ihost->pdev->dev, "%s: No dev\n", __func__);
847847

848-
ret = TMF_RESP_FUNC_COMPLETE;
848+
ret = TMF_RESP_FUNC_FAILED;
849849
goto out;
850850
}
851851
if (isci_remote_device_suspend(ihost, isci_device) != SCI_SUCCESS) {

0 commit comments

Comments
 (0)