From: Fiona Ebner Date: Fri, 30 May 2025 15:11:13 +0000 (+0200) Subject: block: mark bdrv_inactivate_all() as GRAPH_UNLOCKED X-Git-Tag: v10.1.0-rc0~13^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7525aa25dbee5213c10a325a4633fd80f577c440;p=thirdparty%2Fqemu.git block: mark bdrv_inactivate_all() as GRAPH_UNLOCKED The function bdrv_inactivate_all() calls bdrv_drain_all_begin(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner Message-ID: <20250530151125.955508-37-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 a641beb270..eec92a98da 100644 --- a/include/block/block-global-state.h +++ b/include/block/block-global-state.h @@ -187,7 +187,7 @@ int no_coroutine_fn GRAPH_RDLOCK bdrv_inactivate(BlockDriverState *bs, Error **errp); void bdrv_activate_all(Error **errp); -int bdrv_inactivate_all(void); +int GRAPH_UNLOCKED bdrv_inactivate_all(void); int bdrv_flush_all(void); void bdrv_close_all(void);