aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2022-12-07 14:18:21 +0100
committerKevin Wolf <kwolf@redhat.com>2022-12-15 16:07:43 +0100
commitda0bd744344adb1f285002467d7fa84699dc2fce (patch)
tree944bcb7c9226543d81b55204bad8bf2afb851471 /include
parent0508d0be4b547be8da97c95ea9e1f433077dd2ec (diff)
downloadqemu-da0bd744344adb1f285002467d7fa84699dc2fce.zip
qemu-da0bd744344adb1f285002467d7fa84699dc2fce.tar.gz
qemu-da0bd744344adb1f285002467d7fa84699dc2fce.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/block/block-global-state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block-global-state.h b/include/block/block-global-state.h
index 1f8b54f..b0a3cfe 100644
--- a/include/block/block-global-state.h
+++ b/include/block/block-global-state.h
@@ -152,6 +152,7 @@ int bdrv_inactivate_all(void);
int bdrv_flush_all(void);
void bdrv_close_all(void);
void bdrv_drain_all_begin(void);
+void bdrv_drain_all_begin_nopoll(void);
void bdrv_drain_all_end(void);
void bdrv_drain_all(void);