From: Fiona Ebner Date: Fri, 30 May 2025 15:11:22 +0000 (+0200) Subject: block: mark bdrv_close_all() as GRAPH_UNLOCKED X-Git-Tag: v10.1.0-rc0~13^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d7e3f8de09d92f9ebea530be3696ed053ae8508;p=thirdparty%2Fqemu.git block: mark bdrv_close_all() as GRAPH_UNLOCKED The function bdrv_close_all() calls bdrv_drain_all(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner Message-ID: <20250530151125.955508-46-f.ebner@proxmox.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/include/block/block-global-state.h b/include/block/block-global-state.h index d3dd951013..e7c9acd2ba 100644 --- a/include/block/block-global-state.h +++ b/include/block/block-global-state.h @@ -192,7 +192,7 @@ void bdrv_activate_all(Error **errp); int GRAPH_UNLOCKED bdrv_inactivate_all(void); int bdrv_flush_all(void); -void bdrv_close_all(void); +void GRAPH_UNLOCKED bdrv_close_all(void); void GRAPH_UNLOCKED bdrv_drain_all_begin(void); void bdrv_drain_all_begin_nopoll(void); void bdrv_drain_all_end(void);