Re: [Qemu-block] [PATCH] block: Fix AioContext switch for bs->drv == NULL

2019-04-17 Thread Max Reitz
On 17.04.19 17:48, Kevin Wolf wrote: > Even for block nodes with bs->drv == NULL, we can't just ignore a > bdrv_set_aio_context() call. Leaving the node in its old context can > mean that it's still in an iothread context in bdrv_close_all() during > shutdown, resulting in an attempted unlock of

[Qemu-block] [PATCH] block: Fix AioContext switch for bs->drv == NULL

2019-04-17 Thread Kevin Wolf
Even for block nodes with bs->drv == NULL, we can't just ignore a bdrv_set_aio_context() call. Leaving the node in its old context can mean that it's still in an iothread context in bdrv_close_all() during shutdown, resulting in an attempted unlock of the AioContext lock which we don't hold. This