[SCSI] mpt2sas : running out of message frames

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, May 2, 2009 - 5:02 pm

Gitweb:     http://git.kernel.org/linus/77bdd9ee1e1d94fa853c354dcde881ddc5d277a5
Commit:     77bdd9ee1e1d94fa853c354dcde881ddc5d277a5
Parent:     0d04df9b4a83c50ebe2143f20c2d5469c83ba314
Author:     Eric Moore <eric.moore@lsi.com>
AuthorDate: Tue Apr 21 15:39:24 2009 -0600
Committer:  James Bottomley <James.Bottomley@HansenPartnership.com>
CommitDate: Mon Apr 27 10:53:57 2009 -0500

    [SCSI] mpt2sas : running out of message frames
    
    The driver is not freeing message frame when returning failure from
    _ctl_do_task_abort.   If you call this function 500 times when its unable
    to find an active task mid, you end up with no message frames.
    
    Signed-off-by: Eric Moore <eric.moore@lsi.com>
    Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
 drivers/scsi/mpt2sas/mpt2sas_ctl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c
index 2d4f85c..e0eab0a 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c
@@ -714,8 +714,10 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc,
 
 		if (tm_request->TaskType ==
 		    MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK) {
-			if (_ctl_do_task_abort(ioc, &karg, tm_request))
+			if (_ctl_do_task_abort(ioc, &karg, tm_request)) {
+				mpt2sas_base_free_smid(ioc, smid);
 				goto out;
+			}
 		}
 
 		mutex_lock(&ioc->tm_cmds.mutex);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] mpt2sas : running out of message frames, Linux Kernel Mailing ..., (Sat May 2, 5:02 pm)