qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-stable] [PATCH v2 4/5] migration: Set correct AioContext to BlockB


From: Fam Zheng
Subject: [Qemu-stable] [PATCH v2 4/5] migration: Set correct AioContext to BlockBackend
Date: Tue, 27 Sep 2016 14:37:55 +0800

The BB is newly created and it should follow the BDS's current context.

Signed-off-by: Fam Zheng <address@hidden>
---
 migration/block.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration/block.c b/migration/block.c
index ebc10e6..b7365ee 100644
--- a/migration/block.c
+++ b/migration/block.c
@@ -445,6 +445,7 @@ static void init_blk_migration(QEMUFile *f)
         BlockDriverState *bs = bmds_bs[i].bs;
 
         if (bmds) {
+            blk_set_aio_context(bmds->blk, bdrv_get_aio_context(bs));
             blk_insert_bs(bmds->blk, bs);
 
             alloc_aio_bitmap(bmds);
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]