Re: [PATCH 4/5] block/io: fix bdrv_co_do_pwrite_zeroes head calculation

2020-03-24 Thread Vladimir Sementsov-Ogievskiy
14.03.2020 0:47, Eric Blake wrote: On 3/2/20 4:05 AM, Vladimir Sementsov-Ogievskiy wrote: It's wrong to update head using num in this place, as num may be reduced during the iteration, and we'll have wrong head value on next iteration. Instead update head at iteration end. Cc:

Re: [PATCH 4/5] block/io: fix bdrv_co_do_pwrite_zeroes head calculation

2020-03-13 Thread Eric Blake
On 3/2/20 4:05 AM, Vladimir Sementsov-Ogievskiy wrote: It's wrong to update head using num in this place, as num may be reduced during the iteration, and we'll have wrong head value on next iteration. Instead update head at iteration end. Cc: qemu-sta...@nongnu.org Signed-off-by: Vladimir