]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/monitor/block-hmp-cmds.c
block: Mark bdrv_skip_implicit_filters() and callers GRAPH_RDLOCK
[mirror_qemu.git] / block / monitor / block-hmp-cmds.c
index 5b2c597e7a7fcc1328c6d46800dad23f79523905..c729cbf1eb8ab228f35ae6b6e87f2a6809fdab3b 100644 (file)
@@ -206,6 +206,9 @@ void hmp_commit(Monitor *mon, const QDict *qdict)
     BlockBackend *blk;
     int ret;
 
+    GLOBAL_STATE_CODE();
+    GRAPH_RDLOCK_GUARD_MAINLOOP();
+
     if (!strcmp(device, "all")) {
         ret = blk_commit_all();
     } else {