From: Fiona Ebner Date: Fri, 30 May 2025 15:11:05 +0000 (+0200) Subject: block: mark bdrv_set_backing_hd() as GRAPH_UNLOCKED X-Git-Tag: v10.1.0-rc0~13^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0d24c711f6d4deaf51de2d5001c0516a10ef22;p=thirdparty%2Fqemu.git block: mark bdrv_set_backing_hd() as GRAPH_UNLOCKED The function bdrv_set_backing_hd() calls bdrv_drain_all_begin(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner Message-ID: <20250530151125.955508-29-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 84a2a4ecd5..009b9ac946 100644 --- a/include/block/block-global-state.h +++ b/include/block/block-global-state.h @@ -100,8 +100,9 @@ bdrv_open_blockdev_ref(BlockdevRef *ref, Error **errp); BlockDriverState * coroutine_fn no_co_wrapper bdrv_co_open_blockdev_ref(BlockdevRef *ref, Error **errp); -int bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, - Error **errp); +int GRAPH_UNLOCKED +bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd, + Error **errp); int GRAPH_WRLOCK bdrv_set_backing_hd_drained(BlockDriverState *bs, BlockDriverState *backing_hd, Error **errp);