linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sym53c8xx_2: free luntbl in sym_hcb_free
@ 2008-05-22 16:42 Mike Anderson
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Anderson @ 2008-05-22 16:42 UTC (permalink / raw)
  To: linux-scsi; +Cc: Matthew Wilcox

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 sucessfully.

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

 drivers/scsi/sym53c8xx_2/sym_hipd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c
index 22a6aae..98df165 100644
--- a/drivers/scsi/sym53c8xx_2/sym_hipd.c
+++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -5741,6 +5741,8 @@ void sym_hcb_free(struct sym_hcb *np)
 
 	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 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] sym53c8xx_2: free luntbl in sym_hcb_free
@ 2008-07-21 22:58 Mike Anderson
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Anderson @ 2008-07-21 22:58 UTC (permalink / raw)
  To: linux-scsi, Matthew Wilcox

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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-21 22:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 22:58 [PATCH] sym53c8xx_2: free luntbl in sym_hcb_free Mike Anderson
  -- strict thread matches above, loose matches on Subject: below --
2008-05-22 16:42 Mike Anderson

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).