]> Git Repo - qemu.git/blobdiff - block/qed.c
Include qemu/main-loop.h less
[qemu.git] / block / qed.c
index dcdcd62b4a2e6ef1d7cdbe4764535e9cea5d87b3..d0dcc5f14d836bfe668ef82e9f3a4b5e14a33e4d 100644 (file)
@@ -17,6 +17,8 @@
 #include "qapi/error.h"
 #include "qemu/timer.h"
 #include "qemu/bswap.h"
+#include "qemu/main-loop.h"
+#include "qemu/module.h"
 #include "qemu/option.h"
 #include "trace.h"
 #include "qed.h"
@@ -649,7 +651,8 @@ static int coroutine_fn bdrv_qed_co_create(BlockdevCreateOptions *opts,
         return -EIO;
     }
 
-    blk = blk_new(BLK_PERM_WRITE | BLK_PERM_RESIZE, BLK_PERM_ALL);
+    blk = blk_new(bdrv_get_aio_context(bs),
+                  BLK_PERM_WRITE | BLK_PERM_RESIZE, BLK_PERM_ALL);
     ret = blk_insert_bs(blk, bs, errp);
     if (ret < 0) {
         goto out;
This page took 0.023328 seconds and 4 git commands to generate.