diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-08 13:47:48 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-03-17 15:47:57 +0100 |
commit | a8823a3bfd8a8adfa11dea61b151175a02caa7d0 (patch) | |
tree | aa0293036f54322b0e1cc6f19c3a59328fbdb3e1 /block/io.c | |
parent | 1bf1cbc91f3575ea27e33d0cd2cc49db81ffb2f6 (diff) |
block: Use blk_co_pwritev() for blk_write()
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
diff --git a/block/io.c b/block/io.c index c7084e4932..aa8537ce2e 100644 --- a/block/io.c +++ b/block/io.c @@ -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_pwritev(BlockDriverState *bs, - int64_t offset, unsigned int bytes, QEMUIOVector *qiov, - BdrvRequestFlags flags); static BlockAIOCB *bdrv_co_aio_rw_vector(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, @@ -1281,7 +1278,7 @@ fail: /* * Handle a write request in coroutine context */ -static int coroutine_fn bdrv_co_do_pwritev(BlockDriverState *bs, +int coroutine_fn bdrv_co_do_pwritev(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, BdrvRequestFlags flags) { |