aboutsummaryrefslogtreecommitdiff
path: root/block
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
parentde99c417f6208a64b68e3b35d2aecbca1f60eae0 (diff)
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')
-rw-r--r--block/mirror.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c
index 6dc27ad35d..5b2c119e61 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);
}