From: "Kasai Takanori" Subject: [PATCH] fix free of event channel in blkfront Date: Tue, 26 Dec 2006 21:01:44 +0900 Message-ID: <513301c728e6$064a4bf0$dab2220a@VF03007L> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_5130_01C72931.0CC4F840" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_5130_01C72931.0CC4F840 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_5130_01C72931.0CC4F840 Content-Type: application/octet-stream; name="blkfront-free.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="blkfront-free.patch" # HG changeset patch=0A= # User kasai.takanori@jp.fujisu.com=0A= # Node ID 70a31395fe9ea036ac887818489d0d057f4f8d22=0A= # Parent 159ae46d5e7fdf63a1cc21b3d0f634d85bf2703f=0A= fix free of event channel in blkfront=0A= =0A= Signed-off-by: Takanori Kasai =0A= Signed-off-by: Tsunehisa Doi =0A= =0A= diff -r 159ae46d5e7f -r 70a31395fe9e = linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c=0A= --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Mon Dec 25 = 17:02:16 2006 +0000=0A= +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Tue Dec 26 = 19:09:19 2006 +0900=0A= @@ -384,6 +384,8 @@ static int blkfront_remove(struct xenbus=0A= =0A= DPRINTK("blkfront_remove: %s removed\n", dev->nodename);=0A= =0A= + xenbus_free_evtchn(dev, info->evtchn);=0A= +=0A= blkif_free(info, 0);=0A= =0A= kfree(info);=0A= ------=_NextPart_000_5130_01C72931.0CC4F840 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_5130_01C72931.0CC4F840--