summary refs log tree commit diff stats
path: root/include/system
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2025-05-30 17:11:14 +0200
committerKevin Wolf <kwolf@redhat.com>2025-07-14 15:42:10 +0200
commitb326b127df9eef8e41818ff88d33f99ea54af984 (patch)
tree78a88b245fd04ad3c23973a63c99860da52ec9a0 /include/system
parent7525aa25dbee5213c10a325a4633fd80f577c440 (diff)
downloadfocaccia-qemu-b326b127df9eef8e41818ff88d33f99ea54af984.tar.gz
focaccia-qemu-b326b127df9eef8e41818ff88d33f99ea54af984.zip
block: mark blk_remove_bs() as GRAPH_UNLOCKED
The function blk_remove_bs() calls bdrv_graph_wrlock_drained() and can
also call bdrv_drained_begin(), both of which which must be called with
the graph unlocked.

Marking blk_remove_bs() as GRAPH_UNLOCKED requires temporarily
unlocking in hmp_drive_del().

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20250530151125.955508-38-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/system')
-rw-r--r--include/system/block-backend-global-state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/system/block-backend-global-state.h b/include/system/block-backend-global-state.h
index a62dbdf0dc..1a134083b7 100644
--- a/include/system/block-backend-global-state.h
+++ b/include/system/block-backend-global-state.h
@@ -55,7 +55,7 @@ void monitor_remove_blk(BlockBackend *blk);
 
 BlockBackendPublic *blk_get_public(BlockBackend *blk);
 
-void blk_remove_bs(BlockBackend *blk);
+void GRAPH_UNLOCKED blk_remove_bs(BlockBackend *blk);
 int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp);
 int blk_replace_bs(BlockBackend *blk, BlockDriverState *new_bs, Error **errp);
 bool GRAPH_RDLOCK bdrv_has_blk(BlockDriverState *bs);