summary refs log tree commit diff stats
path: root/hw/misc/mst_fpga.c
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2023-10-19 15:19:35 +0200
committerKevin Wolf <kwolf@redhat.com>2023-10-31 13:51:36 +0100
commite462c6d27d0175a67cd373b3027ea5276d25dd4e (patch)
tree8dc492c6b5eb4c5ed7ba4f87160f00849d41ab7c /hw/misc/mst_fpga.c
parent67446e605dc2cc3e14a4d212bc97e6a2038e8f6a (diff)
downloadfocaccia-qemu-e462c6d27d0175a67cd373b3027ea5276d25dd4e.tar.gz
focaccia-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/misc/mst_fpga.c')
0 files changed, 0 insertions, 0 deletions