]> git.ipfire.org Git - thirdparty/qemu.git/commit
blockdev: avoid locking and draining multiple times in external_snapshot_abort()
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 30 May 2025 15:11:06 +0000 (17:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Jul 2025 13:41:57 +0000 (15:41 +0200)
commitc7af387c7b58f8ffcd412b175768f6ccd591b1fc
tree61234bcf46f950f2b3a46cd9fb3f97a8c616be30
parentde0d24c711f6d4deaf51de2d5001c0516a10ef22
blockdev: avoid locking and draining multiple times in external_snapshot_abort()

By using the appropriate variants bdrv_set_backing_hd_drained() and
bdrv_try_change_aio_context_locked(), there only needs to be a single
drained and write-locked section in external_snapshot_abort().

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