projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de99c41
)
mirror: Don't close target
author
Fam Zheng
<famz@redhat.com>
Mon, 16 Dec 2013 06:45:28 +0000
(14:45 +0800)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/block/mirror.c
b/block/mirror.c
index 6dc27ad35dd2dd20183f8e7ef5f35c46a0286130..5b2c119e6184b799e417e337046a5f9a43d8832e 100644
(file)
--- 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);
}