From: Fam Zheng <f...@redhat.com> Let reference count manage target and don't call bdrv_close here.
Signed-off-by: Fam Zheng <f...@redhat.com> Reviewed-by: Kevin Wolf <kw...@redhat.com> Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> --- block/mirror.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index 6dc27ad..5b2c119 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -482,7 +482,6 @@ immediate_exit: } bdrv_swap(s->target, s->common.bs); } - bdrv_close(s->target); bdrv_unref(s->target); block_job_completed(&s->common, ret); } -- 1.8.4.2