]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/commit.c
block: Mark bdrv_op_is_blocked() and callers GRAPH_RDLOCK
[mirror_qemu.git] / block / commit.c
index aa45beb0f0f8e7601c7a9c7da3ca9a2130dcd8e1..43d1de7577fffe60800956ee37dbf332d803f028 100644 (file)
@@ -434,6 +434,7 @@ int bdrv_commit(BlockDriverState *bs)
     Error *local_err = NULL;
 
     GLOBAL_STATE_CODE();
+    GRAPH_RDLOCK_GUARD_MAINLOOP();
 
     if (!drv)
         return -ENOMEDIUM;