Re: [PATCH v2 9/9] block/io: expand in_flight inc/dec section: bdrv_make_zero

2020-05-01 Thread Eric Blake
On 4/27/20 9:39 AM, Vladimir Sementsov-Ogievskiy wrote: It's safer to expand in_flight request to start before enter to coroutine in synchronous wrappers and end after BDRV_POLL_WHILE loop. Note that qemu_coroutine_enter may only schedule the coroutine in some circumstances. See my wording

[PATCH v2 9/9] block/io: expand in_flight inc/dec section: bdrv_make_zero

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
It's safer to expand in_flight request to start before enter to coroutine in synchronous wrappers and end after BDRV_POLL_WHILE loop. Note that qemu_coroutine_enter may only schedule the coroutine in some circumstances. bdrv_make_zero update includes refactoring: move the whole loop into