aboutsummaryrefslogtreecommitdiff
path: root/block/mirror.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-12-16 14:45:28 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-12-20 16:26:16 +0100
commitf95c625ce4cb7863795fcc36502ac58a44fdb2f1 (patch)
tree3e65c1797ec2ea9c1f1b1d9d62249f68a4929e8f /block/mirror.c
parentde99c417f6208a64b68e3b35d2aecbca1f60eae0 (diff)
downloadqemu-f95c625ce4cb7863795fcc36502ac58a44fdb2f1.zip
qemu-f95c625ce4cb7863795fcc36502ac58a44fdb2f1.tar.gz
qemu-f95c625ce4cb7863795fcc36502ac58a44fdb2f1.tar.bz2
mirror: Don't close target
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>
Diffstat (limited to 'block/mirror.c')
-rw-r--r--block/mirror.c1
1 files changed, 0 insertions, 1 deletions
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);
}