diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-05-25 14:47:06 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-05-30 17:21:23 +0200 |
commit | 2626d27f50f3c993936db04bc6e92d553e1dc914 (patch) | |
tree | 6b445ed22eb5578a109ac06235c834bab860e02c /block.c | |
parent | 4c20dd24b1178c78c47bf323173360b85e65e1e1 (diff) | |
download | qemu-2626d27f50f3c993936db04bc6e92d553e1dc914.zip qemu-2626d27f50f3c993936db04bc6e92d553e1dc914.tar.gz qemu-2626d27f50f3c993936db04bc6e92d553e1dc914.tar.bz2 |
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>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3478,6 +3478,8 @@ int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, * itself, all options starting with "${bdref_key}." are considered part of the * BlockdevRef. * + * The caller must hold the main AioContext lock. + * * TODO Can this be unified with bdrv_open_image()? */ int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, |