diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-06-05 10:57:09 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-06-28 08:46:21 +0200 |
commit | 22dd9405446f5301f32be4f9e88db6d9b582fd03 (patch) | |
tree | 27a1b727753707c6eb9031963a6cb9256bf6e3b5 /block | |
parent | 8aa045421979e59fa27cae6056471d33406a1eba (diff) | |
download | qemu-22dd9405446f5301f32be4f9e88db6d9b582fd03.zip qemu-22dd9405446f5301f32be4f9e88db6d9b582fd03.tar.gz qemu-22dd9405446f5301f32be4f9e88db6d9b582fd03.tar.bz2 |
blockjob: Fix AioContext locking in block_job_add_bdrv()
bdrv_root_attach_child() requires callers to hold the AioContext lock
for child_bs. Take it in block_job_add_bdrv() before calling the
function.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230605085711.21261-10-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions