Am 08/11/2022 um 13:37 schrieb Kevin Wolf: > We want to change .bdrv_co_drained_begin/end() back to be non-coroutine > callbacks, so in preparation, avoid yielding in their implementation. > > This does almost the same as the existing logic in bdrv_drain_invoke(), > by creating and entering coroutines internally. However, since the test > case is by far the heaviest user of coroutine code in drain callbacks, > it is preferable to have the complexity in the test case rather than the > drain core, which is already complicated enough without this. > > The behaviour for bdrv_drain_begin() is unchanged because we increase > bs->in_flight and this is still polled. However, bdrv_drain_end() > doesn't wait for the spawned coroutine to complete any more. This is > fine, we don't rely on bdrv_drain_end() restarting all operations > immediately before the next aio_poll(). > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > Reviewed-by: Emanuele Giuseppe Esposito <eespo...@redhat.com>
- Re: [PATCH 01/13] qed: Don't yield i... Kevin Wolf
- Re: [PATCH 01/13] qed: Don't yield in bd... Emanuele Giuseppe Esposito
- Re: [PATCH 01/13] qed: Don't yield in bd... Hanna Reitz
- [PATCH 09/13] block: Remove subtree drains Kevin Wolf
- Re: [PATCH 09/13] block: Remove subtree ... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 09/13] block: Remove subtree ... Hanna Reitz
- [PATCH 02/13] test-bdrv-drain: Don't yield in... Kevin Wolf
- Re: [PATCH 02/13] test-bdrv-drain: Don't... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 02/13] test-bdrv-drain: D... Kevin Wolf
- Re: [PATCH 02/13] test-bdrv-drain: Don't... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 02/13] test-bdrv-drain: Don't... Emanuele Giuseppe Esposito
- Re: [PATCH 02/13] test-bdrv-drain: Don't... Hanna Reitz
- [PATCH 08/13] stream: Replace subtree drain w... Kevin Wolf
- Re: [PATCH 08/13] stream: Replace subtre... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 08/13] stream: Replace su... Kevin Wolf
- Re: [PATCH 08/13] stream: Replac... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 08/13] stream: Re... Kevin Wolf
- Re: [PATCH 08/13] stream: Replace subtre... Hanna Reitz
- [PATCH 07/13] block: Don't use subtree drains... Kevin Wolf
- Re: [PATCH 07/13] block: Don't use subtr... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 07/13] block: Don't use subtr... Hanna Reitz