aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorParikh, Neerav <neerav.parikh@intel.com>2011-02-25 18:02:56 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-28 19:31:13 -0500
commitf31624831a79b9e3f129f6c3b0a1b83903a7b61e (patch)
treef3ab9ff37a648ae0e1b3cd330d34bacaa633b939 /drivers
parentfe5e3f1aec310779a4b830022a26842b8d587228 (diff)
[SCSI] Revert "[SCSI] libfc: fix exchange being deleted when the abort itself is timed out"
When abort for an exchange timed out it didn't release the reference to the exchange resulting in a memory leak. After discussion with the author of the patch (CC) that introduced this bug it was suggested to revert that patch. This reverts commit ea3e2e72eeb3e8a9440a5da965914f9b12088626. Signed-off by: Neerav Parikh <Neerav.Parikh@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libfc/fc_exch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index 08bf5fa6afd4..10a5436aff77 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -666,13 +666,10 @@ static void fc_exch_timeout(struct work_struct *work)
666 if (e_stat & ESB_ST_ABNORMAL) 666 if (e_stat & ESB_ST_ABNORMAL)
667 rc = fc_exch_done_locked(ep); 667 rc = fc_exch_done_locked(ep);
668 spin_unlock_bh(&ep->ex_lock); 668 spin_unlock_bh(&ep->ex_lock);
669 if (!rc)
670 fc_exch_delete(ep);
669 if (resp) 671 if (resp)
670 resp(sp, ERR_PTR(-FC_EX_TIMEOUT), arg); 672 resp(sp, ERR_PTR(-FC_EX_TIMEOUT), arg);
671 if (!rc) {
672 /* delete the exchange if it's already being aborted */
673 fc_exch_delete(ep);
674 return;
675 }
676 fc_seq_exch_abort(sp, 2 * ep->r_a_tov); 673 fc_seq_exch_abort(sp, 2 * ep->r_a_tov);
677 goto done; 674 goto done;
678 } 675 }