]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/block/block_int-common.h
block: Mark bdrv_recurse_can_replace() and callers GRAPH_RDLOCK
[mirror_qemu.git] / include / block / block_int-common.h
index 37d094796ef87e4ad4e208ef863b22b03edbf28b..024ded4fc2ac924f1d6906f0eb57f6410eb7285d 100644 (file)
@@ -217,8 +217,8 @@ struct BlockDriver {
      * same data as @bs without it affecting @bs's behavior (that is,
      * without it being visible to @bs's parents).
      */
-    bool (*bdrv_recurse_can_replace)(BlockDriverState *bs,
-                                     BlockDriverState *to_replace);
+    bool GRAPH_RDLOCK_PTR (*bdrv_recurse_can_replace)(
+        BlockDriverState *bs, BlockDriverState *to_replace);
 
     int (*bdrv_probe_device)(const char *filename);