Skip to content
  • Fam Zheng's avatar
    aad0b7a0
    block: Inactivate all children · aad0b7a0
    Fam Zheng authored
    
    
    Currently we only inactivate the top BDS. Actually bdrv_inactivate
    should be the opposite of bdrv_invalidate_cache.
    
    Recurse into the whole subtree instead.
    
    Because a node may have multiple parents, and because once
    BDRV_O_INACTIVE is set for a node, further writes are not allowed, we
    cannot interleave flag settings and .bdrv_inactivate calls (that may
    submit write to other nodes in a graph) within a single pass. Therefore
    two passes are used here.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    aad0b7a0
    block: Inactivate all children
    Fam Zheng authored
    
    
    Currently we only inactivate the top BDS. Actually bdrv_inactivate
    should be the opposite of bdrv_invalidate_cache.
    
    Recurse into the whole subtree instead.
    
    Because a node may have multiple parents, and because once
    BDRV_O_INACTIVE is set for a node, further writes are not allowed, we
    cannot interleave flag settings and .bdrv_inactivate calls (that may
    submit write to other nodes in a graph) within a single pass. Therefore
    two passes are used here.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading