]> git.proxmox.com Git - mirror_qemu.git/commit
block: Fix AioContext locking in bdrv_attach_child_common()
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Jun 2023 08:57:05 +0000 (10:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 28 Jun 2023 06:46:12 +0000 (08:46 +0200)
commitc066e808e11a5c181b625537b6c78e0de27a4801
treeb1c4e1339d7f719bee86a86eed90fc9ee082b062
parent8394c35ee14861e2dd2afb20b03036b86388e375
block: Fix AioContext locking in bdrv_attach_child_common()

The function can move the child node to a different AioContext. In this
case, it also must take the AioContext lock for the new context before
calling functions that require the caller to hold the AioContext for the
child node.

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