summary refs log tree commit diff stats
path: root/rust/qemu-api/src
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2025-05-30 17:10:40 +0200
committerKevin Wolf <kwolf@redhat.com>2025-06-04 18:16:33 +0200
commitd4c5f8c980f1073356d2f18d51dc68d42bebb59d (patch)
treef2bd74efe6a9b8b2aa21a2e92789673ffe0ef104 /rust/qemu-api/src
parente1d681b3e1d8256047dbfc6d2c796028b9694eaf (diff)
downloadfocaccia-qemu-d4c5f8c980f1073356d2f18d51dc68d42bebb59d.tar.gz
focaccia-qemu-d4c5f8c980f1073356d2f18d51dc68d42bebb59d.zip
block/snapshot: move drain outside of read-locked bdrv_snapshot_delete()
This is in preparation to mark bdrv_drained_begin() as GRAPH_UNLOCKED.

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

The return value of bdrv_all_delete_snapshot() changes from -1 to
-errno propagated from failed sub-calls. This is fine for the existing
callers of bdrv_all_delete_snapshot().

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250530151125.955508-4-f.ebner@proxmox.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'rust/qemu-api/src')
0 files changed, 0 insertions, 0 deletions