block: Fix locking for bdrv_reopen_queue_child()
commit2e117866d7c96cc17e84cd2946fee1bf3292d814
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2022 17:41:01 +0000 (18 18:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2022 15:07:42 +0000 (15 16:07 +0100)
tree1c5988e611ca4dad29ee2ae00d13fd87143d0194
parentc7bc05f78ab31fb02fc9635f60b9bd22efc8d121
block: Fix locking for bdrv_reopen_queue_child()

Callers don't agree whether bdrv_reopen_queue_child() should be called
with the AioContext lock held or not. Standardise on holding the lock
(as done by QMP blockdev-reopen and the replication block driver) and
fix bdrv_reopen() to do the same.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221118174110.55183-7-kwolf@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c