diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-08 13:47:47 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:49:38 -0600 |
commit | 3a64ad2ff00c6fe89bf25220bade7f15aeeff575 (patch) | |
tree | 887a6e83c35e875b6486fe6e5deba356d18f07f7 /block/io.c | |
parent | 65a1f4ccd2a79f0ede0c6d3bd8b42affffe12249 (diff) | |
download | hqemu-3a64ad2ff00c6fe89bf25220bade7f15aeeff575.zip hqemu-3a64ad2ff00c6fe89bf25220bade7f15aeeff575.tar.gz |
block: Use blk_co_preadv() for blk_read()
This patch introduces blk_co_preadv() as a central function on the
BlockBackend level that is supposed to handle all read requests from the
BB to its root BDS eventually.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/io.c')
-rw-r--r-- | block/io.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -44,9 +44,6 @@ static int coroutine_fn bdrv_co_readv_em(BlockDriverState *bs, static int coroutine_fn bdrv_co_writev_em(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *iov); -static int coroutine_fn bdrv_co_do_preadv(BlockDriverState *bs, - int64_t offset, unsigned int bytes, QEMUIOVector *qiov, - BdrvRequestFlags flags); static int coroutine_fn bdrv_co_do_pwritev(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags); @@ -939,7 +936,7 @@ out: /* * Handle a read request in coroutine context */ -static int coroutine_fn bdrv_co_do_preadv(BlockDriverState *bs, +int coroutine_fn bdrv_co_do_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { |