]> www.infradead.org Git - users/dwmw2/qemu.git/commit
block: Fix AioContext locking in bdrv_reopen_parse_file_or_backing()
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Jun 2023 08:57:06 +0000 (10:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 06:46:14 +0000 (08:46 +0200)
commit4b408668d0bd8fbac7b558bf9bc7acfce5aa0728
tree461deb59d51808745a55ceaf3bbb32ff05d3cb03
parentc066e808e11a5c181b625537b6c78e0de27a4801
block: Fix AioContext locking in bdrv_reopen_parse_file_or_backing()

bdrv_set_file_or_backing_noperm() requires the caller to hold the
AioContext lock for the child node, but we hold the one for the parent
node in bdrv_reopen_parse_file_or_backing(). Take the other one
temporarily.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230605085711.21261-7-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c