Re: Re: [PATCH 1/1] block: Do not poll in bdrv_set_aio_context_ignore() when acquiring new_context

2021-07-20 Thread Zhiyong Ye
Hi Kevin, Thanks for your reply and detailed answer. It is true that AIO_WAIT_WHILE() will temporarily unlock the new context as you said, which is a point I overlooked. I'm using qemu version 5.2, and it works fine after I cherry-pick commit c7040ff6 into it. Thanks again! Zhiyong On

Re: [PATCH 1/1] block: Do not poll in bdrv_set_aio_context_ignore() when acquiring new_context

2021-07-19 Thread Kevin Wolf
Am 12.07.2021 um 07:38 hat Zhiyong Ye geschrieben: > When bdrv_set_aio_context_ignore() is called in the main loop to change > the AioContext onto the IO thread, the bdrv_drain_invoke_entry() never > gets to run and the IO thread hangs at co_schedule_bh_cb(). > > This is because the AioContext is