Skip to content
  • Fam Zheng's avatar
    block: Add bdrv_aio_cancel_async · 02c50efe
    Fam Zheng authored
    
    
    This is the async version of bdrv_aio_cancel, which doesn't block the
    caller. It guarantees that the cb is called either before returning or
    some time later.
    
    bdrv_aio_cancel can base on bdrv_aio_cancel_async, later we can convert
    all .io_cancel implementations to .io_cancel_async, and the aio_poll is
    the common logic. In the end, .io_cancel can be dropped.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    02c50efe