Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-08-01 Thread Stefan Hajnoczi
On Wed, Jul 31, 2013 at 05:51:17PM +0800, Fam Zheng wrote: > On Tue, 07/30 16:58, Stefan Hajnoczi wrote: > > On Tue, Jul 30, 2013 at 03:52:53PM +0800, Fam Zheng wrote: > > > @@ -1518,6 +1519,9 @@ static void > > > bdrv_move_feature_fields(BlockDriverState *bs_dest, > > > /* dirty bitmap */ >

Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-31 Thread Fam Zheng
On Tue, 07/30 16:58, Stefan Hajnoczi wrote: > On Tue, Jul 30, 2013 at 03:52:53PM +0800, Fam Zheng wrote: > > @@ -1518,6 +1519,9 @@ static void bdrv_move_feature_fields(BlockDriverState > > *bs_dest, > > /* dirty bitmap */ > > bs_dest->dirty_bitmap = bs_src->dirty_bitmap; > > > >

Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-30 Thread Stefan Hajnoczi
On Tue, Jul 30, 2013 at 03:52:53PM +0800, Fam Zheng wrote: > @@ -1518,6 +1519,9 @@ static void bdrv_move_feature_fields(BlockDriverState > *bs_dest, > /* dirty bitmap */ > bs_dest->dirty_bitmap = bs_src->dirty_bitmap; > > +/* reference count */ > +bs_dest->refcnt

Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-30 Thread Jeff Cody
On Tue, Jul 30, 2013 at 03:52:53PM +0800, Fam Zheng wrote: > Introduce bdrv_ref/bdrv_unref to manage the lifecycle of > BlockDriverState. They are unused for now but will used to replace > bdrv_delete() later. > > Signed-off-by: Fam Zheng > --- > block.c | 22 ++

Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-30 Thread Stefan Hajnoczi
On Tue, Jul 30, 2013 at 02:16:08PM +0200, Andreas Färber wrote: > Am 30.07.2013 09:52, schrieb Fam Zheng: > > Introduce bdrv_ref/bdrv_unref to manage the lifecycle of > > BlockDriverState. They are unused for now but will used to replace > > bdrv_delete() later. > > > > Signed-off-by: Fam Zheng >

Re: [Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-30 Thread Andreas Färber
Am 30.07.2013 09:52, schrieb Fam Zheng: > Introduce bdrv_ref/bdrv_unref to manage the lifecycle of > BlockDriverState. They are unused for now but will used to replace > bdrv_delete() later. > > Signed-off-by: Fam Zheng > --- > block.c | 22 ++ > include/blo

[Qemu-devel] [PATCH v2 3/7] block: implement reference count for BlockDriverState

2013-07-30 Thread Fam Zheng
Introduce bdrv_ref/bdrv_unref to manage the lifecycle of BlockDriverState. They are unused for now but will used to replace bdrv_delete() later. Signed-off-by: Fam Zheng --- block.c | 22 ++ include/block/block.h | 2 ++ include/block/block_int.h | 1 +