• K
    block: Make bdrv_drain() driver callbacks non-recursive · 7b6a3d35
    Kevin Wolf 提交于
    bdrv_drained_begin() doesn't increase bs->quiesce_counter recursively
    and also doesn't notify other parent nodes of children, which both means
    that the child nodes are not actually drained, and bdrv_drained_begin()
    is providing useful functionality only on a single node.
    
    To keep things consistent, we also shouldn't call the block driver
    callbacks recursively.
    
    A proper recursive drain version that provides an actually working
    drained section for child nodes will be introduced later.
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NFam Zheng <famz@redhat.com>
    7b6a3d35
io.c 82.1 KB