Re: [Qemu-devel] [PATCH 7/8] xen_disk: simplify blk_disconnect with refcnt

2013-07-25 Thread Jeff Cody
On Thu, Jul 25, 2013 at 08:56:41AM -0400, Jeff Cody wrote: > On Thu, Jul 25, 2013 at 05:01:45PM +0800, Fam Zheng wrote: > > We call bdrv_attach_dev when initializing whether or not bs is created > > locally, so call bdrv_detach_dev and let the refcnt handle the > > lifecycle. > > > > Signed-off-by

Re: [Qemu-devel] [PATCH 7/8] xen_disk: simplify blk_disconnect with refcnt

2013-07-25 Thread Jeff Cody
On Thu, Jul 25, 2013 at 05:01:45PM +0800, Fam Zheng wrote: > We call bdrv_attach_dev when initializing whether or not bs is created > locally, so call bdrv_detach_dev and let the refcnt handle the > lifecycle. > > Signed-off-by: Fam Zheng > --- > hw/block/xen_disk.c | 7 +-- > 1 file changed

[Qemu-devel] [PATCH 7/8] xen_disk: simplify blk_disconnect with refcnt

2013-07-25 Thread Fam Zheng
We call bdrv_attach_dev when initializing whether or not bs is created locally, so call bdrv_detach_dev and let the refcnt handle the lifecycle. Signed-off-by: Fam Zheng --- hw/block/xen_disk.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hw/block/xen_disk.c b/hw/blo