aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/task.c
diff options
context:
space:
mode:
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>2012-03-09 01:42:03 -0500
committerDan Williams <dan.j.williams@intel.com>2012-05-17 17:33:41 -0400
commit621120ca56850249554996c94efe75f8200a2cc0 (patch)
tree892326cd79b25e0741ee271c01cc04aadb1af8ef /drivers/scsi/isci/task.c
parent033d19d298b4245da2d3d6c795ea97e419f9ac61 (diff)
isci: Manage tag releases differently when aborting tasks.
When an individual request is being terminated, the request's tag is managed in the terminate function. Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/task.c')
-rw-r--r--drivers/scsi/isci/task.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index c1c6dd0473ae..e798c6ae9592 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -719,7 +719,8 @@ isci_task_request_complete(struct isci_host *ihost,
719 */ 719 */
720 set_bit(IREQ_TERMINATED, &ireq->flags); 720 set_bit(IREQ_TERMINATED, &ireq->flags);
721 721
722 isci_free_tag(ihost, ireq->io_tag); 722 if (!test_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags))
723 isci_free_tag(ihost, ireq->io_tag);
723 724
724 /* The task management part completes last. */ 725 /* The task management part completes last. */
725 if (tmf_complete) 726 if (tmf_complete)