diff options
| author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:10:40 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2025-06-04 18:16:33 +0200 |
| commit | d4c5f8c980f1073356d2f18d51dc68d42bebb59d (patch) | |
| tree | f2bd74efe6a9b8b2aa21a2e92789673ffe0ef104 /scripts/qapi/backend.py | |
| parent | e1d681b3e1d8256047dbfc6d2c796028b9694eaf (diff) | |
| download | focaccia-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 'scripts/qapi/backend.py')
0 files changed, 0 insertions, 0 deletions