diff options
author | Alberto Faria <afaria@redhat.com> | 2022-07-05 17:15:17 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-07-12 12:14:56 +0200 |
commit | 09cca043bf68719f93f0ce1f1efafbec4ca72229 (patch) | |
tree | a267bc55f43ec22064940878a3c2d3e7a7235f92 /block | |
parent | d1d3fc3d1d3bf4749400df18462f8fef4c4ca1fb (diff) | |
download | qemu-09cca043bf68719f93f0ce1f1efafbec4ca72229.zip qemu-09cca043bf68719f93f0ce1f1efafbec4ca72229.tar.gz qemu-09cca043bf68719f93f0ce1f1efafbec4ca72229.tar.bz2 |
block: Export blk_pwritev_part() in block-backend-io.h
Also convert it into a generated_co_wrapper.
Signed-off-by: Alberto Faria <afaria@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220705161527.1054072-10-afaria@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/block-backend.c | 14 | ||||
-rw-r--r-- | block/coroutines.h | 5 |
2 files changed, 0 insertions, 19 deletions
diff --git a/block/block-backend.c b/block/block-backend.c index 49db3f6..c75942b 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1403,20 +1403,6 @@ int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset, return blk_co_pwritev_part(blk, offset, bytes, qiov, 0, flags); } -static int coroutine_fn blk_pwritev_part(BlockBackend *blk, int64_t offset, - int64_t bytes, - QEMUIOVector *qiov, size_t qiov_offset, - BdrvRequestFlags flags) -{ - int ret; - - blk_inc_in_flight(blk); - ret = blk_do_pwritev_part(blk, offset, bytes, qiov, qiov_offset, flags); - blk_dec_in_flight(blk); - - return ret; -} - typedef struct BlkRwCo { BlockBackend *blk; int64_t offset; diff --git a/block/coroutines.h b/block/coroutines.h index 85423f8..94fd283 100644 --- a/block/coroutines.h +++ b/block/coroutines.h @@ -108,11 +108,6 @@ int generated_co_wrapper nbd_do_establish_connection(BlockDriverState *bs, bool blocking, Error **errp); int generated_co_wrapper -blk_do_pwritev_part(BlockBackend *blk, int64_t offset, int64_t bytes, - QEMUIOVector *qiov, size_t qiov_offset, - BdrvRequestFlags flags); - -int generated_co_wrapper blk_do_ioctl(BlockBackend *blk, unsigned long int req, void *buf); int generated_co_wrapper |