aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/request.c
diff options
context:
space:
mode:
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>2011-03-04 14:06:46 -0800
committerDan Williams <dan.j.williams@intel.com>2011-07-03 03:55:30 -0700
commit1fad9e934a43407c1ba397b1b6b8882aa8a2cafd (patch)
tree7fed301ac4a17e70b8a6d3ba1111e149cb04f05f /drivers/scsi/isci/request.c
parentec6c9638b0d0537430f78a3e20503b5e68a537b6 (diff)
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 6cd80bbdae1..f19a952754b 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",