commit | 22dd9405446f5301f32be4f9e88db6d9b582fd03 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Mon Jun 05 10:57:09 2023 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Wed Jun 28 08:46:21 2023 +0200 |
tree | 27a1b727753707c6eb9031963a6cb9256bf6e3b5 | |
parent | 8aa045421979e59fa27cae6056471d33406a1eba [diff] |
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>