diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2022-12-07 14:18:21 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2022-12-15 16:07:43 +0100 |
| commit | da0bd744344adb1f285002467d7fa84699dc2fce (patch) | |
| tree | 944bcb7c9226543d81b55204bad8bf2afb851471 /include | |
| parent | 0508d0be4b547be8da97c95ea9e1f433077dd2ec (diff) | |
| download | focaccia-qemu-da0bd744344adb1f285002467d7fa84699dc2fce.tar.gz focaccia-qemu-da0bd744344adb1f285002467d7fa84699dc2fce.zip | |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block-global-state.h b/include/block/block-global-state.h index 1f8b54f2df..b0a3cfe6b8 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); |