]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: move drain outside of read-locked bdrv_reopen_queue_child()
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 30 May 2025 15:10:39 +0000 (17:10 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 4 Jun 2025 16:16:33 +0000 (18:16 +0200)
commite1d681b3e1d8256047dbfc6d2c796028b9694eaf
treed62cc62763cb5afcbe26db92c1e21f13312999f0
parentf1bf3be14bd5d6e6a2cfbbe64cdd4d58a8595d68
block: move drain outside of read-locked bdrv_reopen_queue_child()

This is in preparation to mark bdrv_drained_begin() as GRAPH_UNLOCKED.

More granular draining is not trivially possible, because
bdrv_reopen_queue_child() can recursively call itself.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250530151125.955508-3-f.ebner@proxmox.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c