[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 22/85] mirror: Fix inconsistent backing AioContext fo
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PULL 22/85] mirror: Fix inconsistent backing AioContext for after mirroring |
Date: |
Tue, 11 Jul 2017 18:07:11 +0200 |
From: "sochin.jiang" <address@hidden>
mirror_complete opens the backing chain, which should have the same
AioContext as the top when using iothreads. Make the code guarantee
this, which fixes a failed assertion in bdrv_attach_child.
Signed-off-by: sochin.jiang <address@hidden>
Message-id: address@hidden
[mreitz: Reworded commit message]
Signed-off-by: Max Reitz <address@hidden>
---
block.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block.c b/block.c
index edfa6b7..b9e5114 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 */
--
2.9.4
- [Qemu-devel] [PULL 11/85] qcow2: convert QCow2 to use QCryptoBlock for encryption, (continued)
- [Qemu-devel] [PULL 11/85] qcow2: convert QCow2 to use QCryptoBlock for encryption, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 14/85] qcow2: add iotests to cover LUKS encryption support, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 15/85] iotests: enable tests 134 and 158 to work with qcow (v1), Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 13/85] qcow2: add support for LUKS encryption format, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 16/85] block: rip out all traces of password prompting, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 17/85] block: remove all encryption handling APIs, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 18/85] block: pass option prefix down to crypto layer, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 19/85] qcow2: report encryption specific image information, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 21/85] iotests: 181 does not work for all formats, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 20/85] docs: document encryption options for qcow, qcow2 and luks, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 22/85] mirror: Fix inconsistent backing AioContext for after mirroring,
Max Reitz <=
- [Qemu-devel] [PULL 23/85] specs/qcow2: fix bitmap granularity qemu-specific note, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 24/85] specs/qcow2: do not use wording 'bitmap header', Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 25/85] hbitmap: improve dirty iter, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 26/85] tests: add hbitmap iter test, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 27/85] block: fix bdrv_dirty_bitmap_granularity signature, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 28/85] block/dirty-bitmap: add deserialize_ones func, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 29/85] qcow2-refcount: rename inc_refcounts() and make it public, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 31/85] block/dirty-bitmap: fix comment for BlockDirtyBitmap.disabled field, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 30/85] qcow2: add bitmaps extension, Max Reitz, 2017/07/11
- [Qemu-devel] [PULL 32/85] block/dirty-bitmap: add readonly field to BdrvDirtyBitmap, Max Reitz, 2017/07/11