diff options
author | Fiona Ebner <f.ebner@proxmox.com> | 2025-05-30 17:11:09 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2025-07-14 15:42:02 +0200 |
commit | c6b5328b5b81a358df766094a361b747eadc55a8 (patch) | |
tree | 06d5a07f659e9721883237012ef6d99a8ead8fce | |
parent | 9ec8c4793f0f5a6f1d342a5d5eebeec516e3c107 (diff) | |
download | qemu-c6b5328b5b81a358df766094a361b747eadc55a8.zip qemu-c6b5328b5b81a358df766094a361b747eadc55a8.tar.gz qemu-c6b5328b5b81a358df766094a361b747eadc55a8.tar.bz2 |
block/snapshot: mark bdrv_all_delete_snapshot() as GRAPH_UNLOCKED
The function bdrv_all_delete_snapshot() calls bdrv_drain_all_begin(),
which must be called with the graph unlocked.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20250530151125.955508-33-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | include/block/snapshot.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/block/snapshot.h b/include/block/snapshot.h index 304cc6e..2316a43 100644 --- a/include/block/snapshot.h +++ b/include/block/snapshot.h @@ -90,9 +90,9 @@ int bdrv_snapshot_load_tmp_by_id_or_name(BlockDriverState *bs, bool bdrv_all_can_snapshot(bool has_devices, strList *devices, Error **errp); -int bdrv_all_delete_snapshot(const char *name, - bool has_devices, strList *devices, - Error **errp); +int GRAPH_UNLOCKED +bdrv_all_delete_snapshot(const char *name, bool has_devices, strList *devices, + Error **errp); int bdrv_all_goto_snapshot(const char *name, bool has_devices, strList *devices, Error **errp); |