]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/throttle.c
Merge tag 'pull-maintainer-may24-160524-2' of https://gitlab.com/stsquad/qemu into...
[mirror_qemu.git] / block / throttle.c
index 1098a4ae9aac79a68ef82189925a9e1b3388a5f8..97972d1f15e9ae58780ee9ac6298ec60754d1a24 100644 (file)
@@ -84,6 +84,9 @@ static int throttle_open(BlockDriverState *bs, QDict *options,
     if (ret < 0) {
         return ret;
     }
+
+    GRAPH_RDLOCK_GUARD_MAINLOOP();
+
     bs->supported_write_flags = bs->file->bs->supported_write_flags |
                                 BDRV_REQ_WRITE_UNCHANGED;
     bs->supported_zero_flags = bs->file->bs->supported_zero_flags |