]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block.c
block: Mark bdrv_(un)freeze_backing_chain() and callers GRAPH_RDLOCK
[mirror_qemu.git] / block.c
diff --git a/block.c b/block.c
index 7e8b39711b8fa52bf75c938c8ba7d6fc50d569d9..dc1980ee42f9c257c7c7c0b9ce3a2b033e84d295 100644 (file)
--- a/block.c
+++ b/block.c
@@ -5843,8 +5843,9 @@ BlockDriverState *bdrv_find_base(BlockDriverState *bs)
  * between @bs and @base is frozen. @errp is set if that's the case.
  * @base must be reachable from @bs, or NULL.
  */
-bool bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base,
-                                  Error **errp)
+static bool GRAPH_RDLOCK
+bdrv_is_backing_chain_frozen(BlockDriverState *bs, BlockDriverState *base,
+                             Error **errp)
 {
     BlockDriverState *i;
     BdrvChild *child;