From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bom22-0004RH-GI for qemu-devel@nongnu.org; Tue, 27 Sep 2016 02:38:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bom1z-0003eU-9j for qemu-devel@nongnu.org; Tue, 27 Sep 2016 02:38:22 -0400 From: Fam Zheng Date: Tue, 27 Sep 2016 14:37:55 +0800 Message-Id: <1474958276-7715-5-git-send-email-famz@redhat.com> In-Reply-To: <1474958276-7715-1-git-send-email-famz@redhat.com> References: <1474958276-7715-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 4/5] migration: Set correct AioContext to BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , qemu-stable@nongnu.org, Max Reitz , stefanha@redhat.com, pbonzini@redhat.com The BB is newly created and it should follow the BDS's current context. Signed-off-by: Fam Zheng --- 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