Re: [PATCH 10/12] block-backend: convert blk_aio_ functions to int64_t bytes paramter

2021-10-12 Thread Vladimir Sementsov-Ogievskiy
13.10.2021 00:37, Eric Blake wrote: On Tue, Oct 12, 2021 at 07:13:23PM +0300, Vladimir Sementsov-Ogievskiy wrote: @@ -1530,6 +1531,7 @@ BlockAIOCB *blk_aio_preadv(BlockBackend *blk, int64_t offset, QEMUIOVector *qiov, BdrvRequestFlags flags,

Re: [PATCH 10/12] block-backend: convert blk_aio_ functions to int64_t bytes paramter

2021-10-12 Thread Eric Blake
On Tue, Oct 12, 2021 at 07:13:23PM +0300, Vladimir Sementsov-Ogievskiy wrote: > > > @@ -1530,6 +1531,7 @@ BlockAIOCB *blk_aio_preadv(BlockBackend *blk, > > > int64_t offset, > > > QEMUIOVector *qiov, BdrvRequestFlags flags, > > >

Re: [PATCH 10/12] block-backend: convert blk_aio_ functions to int64_t bytes paramter

2021-10-12 Thread Vladimir Sementsov-Ogievskiy
10/6/21 23:29, Eric Blake wrote: On Wed, Oct 06, 2021 at 03:17:16PM +0200, Vladimir Sementsov-Ogievskiy wrote: 1. Convert bytes in BlkAioEmAIOCB: aio->bytes is only passed to already int64_t interfaces, and set in blk_aio_prwv, which is updated here. 2. For all updated functions

Re: [PATCH 10/12] block-backend: convert blk_aio_ functions to int64_t bytes paramter

2021-10-06 Thread Eric Blake
On Wed, Oct 06, 2021 at 03:17:16PM +0200, Vladimir Sementsov-Ogievskiy wrote: > 1. Convert bytes in BlkAioEmAIOCB: > aio->bytes is only passed to already int64_t interfaces, and set in > blk_aio_prwv, which is updated here. > > 2. For all updated functions parameter type becomes wider so

[PATCH 10/12] block-backend: convert blk_aio_ functions to int64_t bytes paramter

2021-10-06 Thread Vladimir Sementsov-Ogievskiy
1. Convert bytes in BlkAioEmAIOCB: aio->bytes is only passed to already int64_t interfaces, and set in blk_aio_prwv, which is updated here. 2. For all updated functions parameter type becomes wider so callers are safe. 3. In blk_aio_prwv we only store bytes to BlkAioEmAIOCB, which is