diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2012-03-09 01:42:03 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2012-05-17 17:33:41 -0400 |
commit | 621120ca56850249554996c94efe75f8200a2cc0 (patch) | |
tree | 892326cd79b25e0741ee271c01cc04aadb1af8ef /drivers/scsi/isci/host.c | |
parent | 033d19d298b4245da2d3d6c795ea97e419f9ac61 (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/host.c')
-rw-r--r-- | drivers/scsi/isci/host.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 53c3ad64c99..ef2790faeab 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c | |||
@@ -1141,7 +1141,8 @@ void isci_host_completion_routine(unsigned long data) | |||
1141 | if (test_and_clear_bit(IREQ_ABORT_PATH_ACTIVE, &request->flags)) | 1141 | if (test_and_clear_bit(IREQ_ABORT_PATH_ACTIVE, &request->flags)) |
1142 | wake_up_all(&ihost->eventq); | 1142 | wake_up_all(&ihost->eventq); |
1143 | 1143 | ||
1144 | isci_free_tag(ihost, request->io_tag); | 1144 | if (!test_bit(IREQ_NO_AUTO_FREE_TAG, &request->flags)) |
1145 | isci_free_tag(ihost, request->io_tag); | ||
1145 | } | 1146 | } |
1146 | spin_unlock_irq(&ihost->scic_lock); | 1147 | spin_unlock_irq(&ihost->scic_lock); |
1147 | 1148 | ||