Re: [PATCH v2 13/15] block: Drop out of coroutine in bdrv_do_drained_begin_quiesce()

2022-11-25 Thread Vladimir Sementsov-Ogievskiy
On 11/18/22 20:41, Kevin Wolf wrote: The next patch adds a parent drain to bdrv_attach_child_common(), which shouldn't be, but is currently called from coroutines in some cases (e.g. .bdrv_co_create implementations generally open new nodes). Therefore, the assertion that we're not in a coroutine

[PATCH v2 13/15] block: Drop out of coroutine in bdrv_do_drained_begin_quiesce()

2022-11-18 Thread Kevin Wolf
The next patch adds a parent drain to bdrv_attach_child_common(), which shouldn't be, but is currently called from coroutines in some cases (e.g. .bdrv_co_create implementations generally open new nodes). Therefore, the assertion that we're not in a coroutine doesn't hold true any more. We could