[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH] mirror: fix the inconsistent AioContext problem in
From: |
sochin.jiang |
Subject: |
[Qemu-block] [PATCH] mirror: fix the inconsistent AioContext problem in the backing BDSs during mirroring. |
Date: |
Mon, 26 Jun 2017 19:04:24 +0800 |
From: "sochin.jiang" <address@hidden>
mirror_complete opens the backings, BDSs of the new open backings should have a
same AioContext with the top when using iothreads, fix the code to guarantee
this,
also avoiding unexpected qemu exit(assert fails in bdrv_attach_child).
Signed-off-by: sochin.jiang <address@hidden>
---
block.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block.c b/block.c
index 6943962..b312fe6 100644
--- a/block.c
+++ b/block.c
@@ -2185,6 +2185,7 @@ int bdrv_open_backing_file(BlockDriverState *bs, QDict
*parent_options,
ret = -EINVAL;
goto free_exit;
}
+ bdrv_set_aio_context(backing_hd, bdrv_get_aio_context(bs));
/* Hook up the backing file link; drop our reference, bs owns the
* backing_hd reference now */
--
1.8.3.1
- [Qemu-block] [PATCH] mirror: fix the inconsistent AioContext problem in the backing BDSs during mirroring.,
sochin.jiang <=