Re: [PATCH for-8.2] block: Fix AioContext locking in qmp_block_resize()

2023-12-13 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes. signature.asc Description: PGP signature

Re: [PATCH for-8.2] block: Fix AioContext locking in qmp_block_resize()

2023-12-11 Thread Stefan Hajnoczi
changed, 2 insertions(+), 1 deletion(-) >From IRC: 09:40 < stefanha> kwolf: "[PATCH for-8.2] block: Fix AioContext locking in qmp_block_resize()" fixes QEMU 8.1 bug and is not a regression? 09:41 < stefanha> I'm trying to understand the nature of the issue and whe

[PATCH for-8.2] block: Fix AioContext locking in qmp_block_resize()

2023-12-08 Thread Kevin Wolf
The AioContext must be unlocked before calling blk_co_unref(), because it takes the AioContext lock internally in blk_unref_bh(), which is scheduled in the main thread. If we don't unlock, the AioContext is locked twice and nested event loops such as in bdrv_graph_wrlock() will deadlock. Cc: qemu-