diff options
| author | Max Reitz | 2019-07-22 15:33:43 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2019-08-16 10:25:16 +0200 |
| commit | 637d54a5f3a1965fa6aea9e41c4f84abf7a36de9 (patch) | |
| tree | f4b69897939b4819390aa4da545912e3098934d5 /block/commit.c | |
| parent | block: Simplify bdrv_filter_default_perms() (diff) | |
| download | qemu-637d54a5f3a1965fa6aea9e41c4f84abf7a36de9.tar.gz qemu-637d54a5f3a1965fa6aea9e41c4f84abf7a36de9.tar.xz qemu-637d54a5f3a1965fa6aea9e41c4f84abf7a36de9.zip | |
block: Keep subtree drained in drop_intermediate
bdrv_drop_intermediate() calls BdrvChildRole.update_filename(). That
may poll, thus changing the graph, which potentially breaks the
QLIST_FOREACH_SAFE() loop.
Just keep the whole subtree drained. This is probably the right thing
to do anyway (dropping nodes while the subtree is not drained seems
wrong).
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions
