summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/request.c
diff options
context:
space:
mode:
authorJeff Skirvin2011-03-04 23:06:46 +0100
committerDan Williams2011-07-03 12:55:30 +0200
commit1fad9e934a43407c1ba397b1b6b8882aa8a2cafd (patch)
tree7fed301ac4a17e70b8a6d3ba1111e149cb04f05f /drivers/scsi/isci/request.c
parentisci: Any reset indicated on an I/O completion escalates it to the error path. (diff)
downloadkernel-qcow2-linux-1fad9e934a43407c1ba397b1b6b8882aa8a2cafd.tar.gz
kernel-qcow2-linux-1fad9e934a43407c1ba397b1b6b8882aa8a2cafd.tar.xz
kernel-qcow2-linux-1fad9e934a43407c1ba397b1b6b8882aa8a2cafd.zip
isci: save the i/o tag outside the scic request structure.
The pointer to the core representation of a request is marked NULL at completion, but we need to save the i/o tag for task management. Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Jacek Danecki <Jacek.Danecki@intel.com> [revise changelog] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.c')
-rw-r--r--drivers/scsi/isci/request.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index 6cd80bbdae15..f19a952754b9 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -463,6 +463,12 @@ int isci_request_execute(
*/
status = SCI_SUCCESS;
}
+ else
+ /* Save the tag for possible task mgmt later. */
+ request->io_tag = scic_io_request_get_io_tag(
+ request->sci_request_handle);
+
+
} else
dev_warn(&isci_host->pdev->dev,
"%s: failed request start\n",