On 09/30/2013 06:02 AM, Fam Zheng wrote:
> Let reference count manage target and don't call bdrv_close here.
> 
> Signed-off-by: Fam Zheng <f...@redhat.com>
> ---
>  block/mirror.c | 1 -
>  1 file changed, 1 deletion(-)

Reviewed-by: Eric Blake <ebl...@redhat.com>

> 
> diff --git a/block/mirror.c b/block/mirror.c
> index fdc7fa8..af6851f 100644
> --- a/block/mirror.c
> +++ b/block/mirror.c
> @@ -479,7 +479,6 @@ immediate_exit:
>          }
>          bdrv_swap(s->target, s->common.bs);
>      }
> -    bdrv_close(s->target);
>      bdrv_unref(s->target);
>      block_job_completed(&s->common, ret);
>  }
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to