]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qapi-sysemu.c
Merge tag 'for-upstream' of https://repo.or.cz/qemu/kevin into staging
[mirror_qemu.git] / block / qapi-sysemu.c
index cec3c1afb43dc5c6d388f2e4a39d11962f7e1e86..ef07151892a55381d1f0cb5d0d2789e904340655 100644 (file)
@@ -362,7 +362,10 @@ void qmp_blockdev_change_medium(const char *device,
         qdict_put_str(options, "driver", format);
     }
 
+    aio_context_acquire(qemu_get_aio_context());
     medium_bs = bdrv_open(filename, NULL, options, bdrv_flags, errp);
+    aio_context_release(qemu_get_aio_context());
+
     if (!medium_bs) {
         goto fail;
     }