diff options
author | Fiona Ebner <f.ebner@proxmox.com> | 2023-10-19 15:19:35 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-10-31 13:51:36 +0100 |
commit | e462c6d27d0175a67cd373b3027ea5276d25dd4e (patch) | |
tree | 8dc492c6b5eb4c5ed7ba4f87160f00849d41ab7c /block/blkio.c | |
parent | 67446e605dc2cc3e14a4d212bc97e6a2038e8f6a (diff) |
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 'block/blkio.c')
0 files changed, 0 insertions, 0 deletions