mirror: Hold main AioContext lock for calling bdrv_open_backing_file()
commit2626d27f50f3c993936db04bc6e92d553e1dc914
authorKevin Wolf <kwolf@redhat.com>
Thu, 25 May 2023 12:47:06 +0000 (25 14:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 30 May 2023 15:21:23 +0000 (30 17:21 +0200)
tree6b445ed22eb5578a109ac06235c834bab860e02c
parent4c20dd24b1178c78c47bf323173360b85e65e1e1
mirror: Hold main AioContext lock for calling bdrv_open_backing_file()

bdrv_open_backing_file() calls bdrv_open_inherit(), so all callers must
hold the main AioContext lock.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230525124713.401149-6-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block/mirror.c