Re: [PATCH 6/9] block/io: expand in_flight inc/dec section: block-status

2020-04-20 Thread Stefan Hajnoczi
On Wed, Apr 08, 2020 at 12:30:48PM +0300, 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 >

[PATCH 6/9] block/io: expand in_flight inc/dec section: block-status

2020-04-08 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. block-status requests are complex, they involve querying different block