Commit d736f119 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

block: Allow graph changes in subtree drained section



We need to remember how many of the drain sections in which a node is
were recursive (i.e. subtree drain rather than node drain), so that they
can be correctly applied when children are added or removed during the
drained section.

With this change, it is safe to modify the graph even inside a
bdrv_subtree_drained_begin/end() section.

Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 27e64474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment