Am 08/11/2022 um 13:37 schrieb Kevin Wolf: > Polling during bdrv_drained_end() can be problematic (and in the future, > we may get cases for bdrv_drained_begin() where polling is forbidden, > and we don't care about already in-flight requests, but just want to > prevent new requests from arriving). > > The .bdrv_drained_begin/end callbacks running in a coroutine is the only > reason why we have to do this polling, so make them non-coroutine > callbacks again. None of the callers actually yield any more. > > This means that bdrv_drained_end() effectively doesn't poll any more, > even if AIO_WAIT_WHILE() loops are still there (their condition is false > from the beginning). This is generally not a problem, but in > test-bdrv-drain, some additional explicit aio_poll() calls need to be > added because the test case wants to verify the final state after BHs > have executed. > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > Reviewed-by: Emanuele Giuseppe Esposito <eespo...@redhat.com>
- [PATCH 00/13] block: Simplify drain Kevin Wolf
- [PATCH 04/13] block: Remove drained_end_... Kevin Wolf
- Re: [PATCH 04/13] block: Remove drai... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 04/13] block: Remove ... Kevin Wolf
- Re: [PATCH 04/13] block: Remove drai... Emanuele Giuseppe Esposito
- Re: [PATCH 04/13] block: Remove drai... Hanna Reitz
- [PATCH 03/13] block: Revert .bdrv_draine... Kevin Wolf
- Re: [PATCH 03/13] block: Revert .bdr... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 03/13] block: Revert .bdr... Stefan Hajnoczi
- Re: [PATCH 03/13] block: Revert .bdr... Emanuele Giuseppe Esposito
- Re: [PATCH 03/13] block: Revert .bdr... Hanna Reitz
- [PATCH 12/13] block: Don't poll in bdrv_... Kevin Wolf
- Re: [PATCH 12/13] block: Don't poll ... Emanuele Giuseppe Esposito
- Re: [PATCH 12/13] block: Don't poll ... Hanna Reitz
- Re: [PATCH 12/13] block: Don't p... Kevin Wolf
- [PATCH 11/13] block: Remove ignore_bds_p... Kevin Wolf
- Re: [PATCH 11/13] block: Remove igno... Vladimir Sementsov-Ogievskiy
- Re: [PATCH 11/13] block: Remove igno... Hanna Reitz
- [PATCH 13/13] block: Remove poll paramet... Kevin Wolf
- Re: [PATCH 13/13] block: Remove poll... Hanna Reitz