[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] block/monitor/block-hmp-cmds.c: Fix crash when execute hm
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v2] block/monitor/block-hmp-cmds.c: Fix crash when execute hmp_commit |
Date: |
Tue, 25 Apr 2023 14:09:41 +0200 |
Am 24.04.2023 um 12:39 hat wangliangzz@126.com geschrieben:
> From: Wang Liang <wangliangzz@inspur.com>
>
> hmp_commit() calls blk_is_available() from a non-coroutine context (and in
> the main loop). blk_is_available() is a co_wrapper_mixed_bdrv_rdlock
> function, and in the non-coroutine context it calls AIO_WAIT_WHILE(),
> which crashes if the aio_context lock is not taken before.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1615
> Signed-off-by: Wang Liang <wangliangzz@inspur.com>
Thanks, applied to the block branch.
Kevin