diff options
author | 2023-10-19 15:19:35 +0200 | |
---|---|---|
committer | 2023-10-31 13:51:36 +0100 | |
commit | e462c6d27d0175a67cd373b3027ea5276d25dd4e (patch) | |
tree | 8dc492c6b5eb4c5ed7ba4f87160f00849d41ab7c /hw/core/machine-hmp-cmds.c | |
parent | blockjob: drop AioContext lock before calling bdrv_graph_wrlock() (diff) | |
download | qemu-e462c6d27d0175a67cd373b3027ea5276d25dd4e.tar.xz qemu-e462c6d27d0175a67cd373b3027ea5276d25dd4e.zip |
block: avoid potential deadlock during bdrv_graph_wrlock() in bdrv_close()
by passing the BlockDriverState along, so the held AioContext can be
dropped before polling. See commit 31b2ddfea3 ("graph-lock: Unlock the
AioContext while polling") which introduced this functionality for
more information.
The only way to reach bdrv_close() is via bdrv_unref() and for calling
that the BlockDriverState's AioContext lock is supposed to be held.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20231019131936.414246-3-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/core/machine-hmp-cmds.c')
0 files changed, 0 insertions, 0 deletions