block: Factor out bdrv_drain_all_begin_nopoll()
commitda0bd744344adb1f285002467d7fa84699dc2fce
authorKevin Wolf <kwolf@redhat.com>
Wed, 7 Dec 2022 13:18:21 +0000 (7 14:18 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2022 15:07:43 +0000 (15 16:07 +0100)
tree944bcb7c9226543d81b55204bad8bf2afb851471
parent0508d0be4b547be8da97c95ea9e1f433077dd2ec
block: Factor out bdrv_drain_all_begin_nopoll()

Provide a separate function that just quiesces the users of a node to
prevent new requests from coming in, but without waiting for the already
in-flight I/O to complete.

This function can be used in contexts where polling is not allowed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221207131838.239125-2-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
include/block/block-global-state.h