linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@linux.vnet.ibm.com>
To: linux-scsi <linux-scsi@vger.kernel.org>, Matthew Wilcox <matthew@wil.cx>
Subject: [PATCH] sym53c8xx_2: free luntbl in sym_hcb_free
Date: Mon, 21 Jul 2008 15:58:32 -0700	[thread overview]
Message-ID: <20080721225832.GA4516@linux.vnet.ibm.com> (raw)

From: Mike Anderson <andmike@linux.vnet.ibm.com>

This patch frees the luntbl dma area in sym_hcb_free if allocated.
Since the luntbl is part of a larger dma coherent area not freeing the
luntbl kept a 64k dma coherent area previous allocated through
dma_alloc_coherent allocated. This prevented a DLPAR remove IO 
operation from completing successfully.

Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com>
Cc: Matthew Wilcox <matthew@wil.cx>

---

 drivers/scsi/sym53c8xx_2/sym_hipd.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6-combined/drivers/scsi/sym53c8xx_2/sym_hipd.c
===================================================================
--- linux-2.6-combined.orig/drivers/scsi/sym53c8xx_2/sym_hipd.c	2008-07-21 13:38:56.000000000 -0400
+++ linux-2.6-combined/drivers/scsi/sym53c8xx_2/sym_hipd.c	2008-07-21 16:06:58.000000000 -0400
@@ -5741,6 +5741,8 @@
 
 	for (target = 0; target < SYM_CONF_MAX_TARGET ; target++) {
 		tp = &np->target[target];
+		if (tp->luntbl)
+			sym_mfree_dma(tp->luntbl, 256, "LUNTBL");
 #if SYM_CONF_MAX_LUN > 1
 		kfree(tp->lunmp);
 #endif 

             reply	other threads:[~2008-07-21 22:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-21 22:58 Mike Anderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-22 16:42 [PATCH] sym53c8xx_2: free luntbl in sym_hcb_free Mike Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080721225832.GA4516@linux.vnet.ibm.com \
    --to=andmike@linux.vnet.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matthew@wil.cx \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).