All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix free of event channel in blkfront
@ 2006-12-26 12:01 Kasai Takanori
  2006-12-29 17:54 ` Steven Hand
  0 siblings, 1 reply; 15+ messages in thread
From: Kasai Takanori @ 2006-12-26 12:01 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

Hi All,

We tested the xm block-attach/detach command.
It repeats block-attach/detach command for DomU and pv-on-hvm on HVM Domain.
(block-attach -> block-detach -> block-attach -> block-detach -> ...)

The block-attach command failed when repeating 256 times. 
It is because the channel had not been freed in blkfront. 
Therefore, it remain using the event channel. 

This patch is corrected to free the event channel in blkfront. 

Thanks

--
Takanori Kasai

[-- Attachment #2: blkfront-free.patch --]
[-- Type: application/octet-stream, Size: 819 bytes --]

# HG changeset patch
# User kasai.takanori@jp.fujisu.com
# Node ID 70a31395fe9ea036ac887818489d0d057f4f8d22
# Parent  159ae46d5e7fdf63a1cc21b3d0f634d85bf2703f
fix free of event channel in blkfront

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>

diff -r 159ae46d5e7f -r 70a31395fe9e linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Mon Dec 25 17:02:16 2006 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Tue Dec 26 19:09:19 2006 +0900
@@ -384,6 +384,8 @@ static int blkfront_remove(struct xenbus
 
 	DPRINTK("blkfront_remove: %s removed\n", dev->nodename);
 
+	xenbus_free_evtchn(dev, info->evtchn);
+
 	blkif_free(info, 0);
 
 	kfree(info);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2007-04-11  2:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-26 12:01 [PATCH] fix free of event channel in blkfront Kasai Takanori
2006-12-29 17:54 ` Steven Hand
2007-01-09  0:33   ` Kasai Takanori
2007-01-09  6:18     ` Kasai Takanori
2007-01-09 10:48       ` Kasai Takanori
2007-02-01  2:56       ` tgh
2007-02-01  4:22         ` Kasai Takanori
2007-02-01  7:46           ` tgh
2007-02-01  9:03             ` Kasai Takanori
2007-02-01 13:22               ` tgh
2007-02-02  0:18                 ` Kasai Takanori
2007-02-02  1:42                   ` tgh
2007-02-02  3:39                     ` Kasai Takanori
2007-02-02  6:24                       ` tgh
2007-04-11  2:22                       ` tgh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.