aboutsummaryrefslogtreecommitdiff
path: root/block/quorum.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2019-02-01 20:29:06 +0100
committerMax Reitz <mreitz@redhat.com>2019-02-25 15:11:25 +0100
commite24518e303e6a4372eba67a8bd3c8730a02b86f0 (patch)
tree1729be725161d9cd824373b02b1d0c2dae7d28b1 /block/quorum.c
parentf30c66ba6e417a07e68ad6e0bc5da27561a3beea (diff)
downloadqemu-e24518e303e6a4372eba67a8bd3c8730a02b86f0.zip
qemu-e24518e303e6a4372eba67a8bd3c8730a02b86f0.tar.gz
qemu-e24518e303e6a4372eba67a8bd3c8730a02b86f0.tar.bz2
block: Use children list in bdrv_refresh_filename
bdrv_refresh_filename() should invoke itself recursively on all children, not just on file. With that change, we can remove the manual invocations in blkverify, quorum, commit, mirror, and blklogwrites. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20190201192935.18394-3-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/quorum.c')
-rw-r--r--block/quorum.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/quorum.c b/block/quorum.c
index 16b3c80..cf9d7c1 100644
--- a/block/quorum.c
+++ b/block/quorum.c
@@ -1073,7 +1073,6 @@ static void quorum_refresh_filename(BlockDriverState *bs, QDict *options)
int i;
for (i = 0; i < s->num_children; i++) {
- bdrv_refresh_filename(s->children[i]->bs);
if (!s->children[i]->bs->full_open_options) {
return;
}