Skip to content
  • Kevin Wolf's avatar
    fbb92b67
    block: Increase BB.in_flight for coroutine and sync interfaces · fbb92b67
    Kevin Wolf authored
    
    
    External callers of blk_co_*() and of the synchronous blk_*() functions
    don't currently increase the BlockBackend.in_flight counter, but calls
    from blk_aio_*() do, so there is an inconsistency whether the counter
    has been increased or not.
    
    This patch moves the actual operations to static functions that can
    later know they will always be called with in_flight increased exactly
    once, even for external callers using the blk_co_*() coroutine
    interfaces.
    
    If the public blk_co_*() interface is unused, remove it.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Message-Id: <20200407121259.21350-3-kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    fbb92b67
    block: Increase BB.in_flight for coroutine and sync interfaces
    Kevin Wolf authored
    
    
    External callers of blk_co_*() and of the synchronous blk_*() functions
    don't currently increase the BlockBackend.in_flight counter, but calls
    from blk_aio_*() do, so there is an inconsistency whether the counter
    has been increased or not.
    
    This patch moves the actual operations to static functions that can
    later know they will always be called with in_flight increased exactly
    once, even for external callers using the blk_co_*() coroutine
    interfaces.
    
    If the public blk_co_*() interface is unused, remove it.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Message-Id: <20200407121259.21350-3-kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Loading