Skip to content
  • Kevin Wolf's avatar
    132ada80
    block: Adjust AioContexts when attaching nodes · 132ada80
    Kevin Wolf authored
    
    
    So far, we only made sure that updating the AioContext of a node
    affected the whole subtree. However, if a node is newly attached to a
    new parent, we also need to make sure that both the subtree of the node
    and the parent are in the same AioContext. This tries to move the new
    child node to the parent AioContext and returns an error if this isn't
    possible.
    
    BlockBackends now actually apply their AioContext to their root node.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    132ada80
    block: Adjust AioContexts when attaching nodes
    Kevin Wolf authored
    
    
    So far, we only made sure that updating the AioContext of a node
    affected the whole subtree. However, if a node is newly attached to a
    new parent, we also need to make sure that both the subtree of the node
    and the parent are in the same AioContext. This tries to move the new
    child node to the parent AioContext and returns an error if this isn't
    possible.
    
    BlockBackends now actually apply their AioContext to their root node.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading