]> Git Repo - qemu.git/commit - block.c
block: Fix locking for bdrv_reopen_queue_child()
authorKevin Wolf <[email protected]>
Fri, 18 Nov 2022 17:41:01 +0000 (18:41 +0100)
committerKevin Wolf <[email protected]>
Thu, 15 Dec 2022 15:07:42 +0000 (16:07 +0100)
commit2e117866d7c96cc17e84cd2946fee1bf3292d814
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 <[email protected]>
Message-Id: <20221118174110[email protected]>
Reviewed-by: Hanna Reitz <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
This page took 0.02523 seconds and 4 git commands to generate.