Skip to content
Snippets Groups Projects
  • Kevin Wolf's avatar
    d736f119
    block: Allow graph changes in subtree drained section · d736f119
    Kevin Wolf authored
    
    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>
    d736f119
    History
    block: Allow graph changes in subtree drained section
    Kevin Wolf authored
    
    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>