]> git.proxmox.com Git - mirror_qemu.git/commitdiff
mirror: Don't close target
authorFam Zheng <famz@redhat.com>
Mon, 16 Dec 2013 06:45:28 +0000 (14:45 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 20 Dec 2013 15:26:16 +0000 (16:26 +0100)
Let reference count manage target and don't call bdrv_close here.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c

index 6dc27ad35dd2dd20183f8e7ef5f35c46a0286130..5b2c119e6184b799e417e337046a5f9a43d8832e 100644 (file)
@@ -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);
 }