diff options
author | Kevin Wolf | 2019-02-14 18:42:44 +0100 |
---|---|---|
committer | Kevin Wolf | 2019-02-25 15:03:19 +0100 |
commit | c90e2a9cfd94bd02d92c53b97f04fd595001de7e (patch) | |
tree | b1c760513e10df48405fa47b70e8a988fd3fc3ec /include | |
parent | qemu-img: fix error reporting for -object (diff) | |
download | qemu-c90e2a9cfd94bd02d92c53b97f04fd595001de7e.tar.gz qemu-c90e2a9cfd94bd02d92c53b97f04fd595001de7e.tar.xz qemu-c90e2a9cfd94bd02d92c53b97f04fd595001de7e.zip |
block-backend: Make blk_inc/dec_in_flight public
For some users of BlockBackends, just increasing the in_flight counter
is easier than implementing separate handlers in BlockDevOps. Make the
helper functions for this public.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/block-backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 832a4bf168..e2066eb06b 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -156,6 +156,8 @@ int blk_co_pdiscard(BlockBackend *blk, int64_t offset, int bytes); int blk_co_flush(BlockBackend *blk); int blk_flush(BlockBackend *blk); int blk_commit_all(void); +void blk_inc_in_flight(BlockBackend *blk); +void blk_dec_in_flight(BlockBackend *blk); void blk_drain(BlockBackend *blk); void blk_drain_all(void); void blk_set_on_error(BlockBackend *blk, BlockdevOnError on_read_error, |