[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 062/100] mirror: Fix inconsistent backing AioContext
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 062/100] mirror: Fix inconsistent backing AioContext for after mirroring |
Date: |
Fri, 7 Jul 2017 19:08:17 +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 */
--
1.8.3.1
- [Qemu-devel] [PULL 041/100] block: expose crypto option names / defs to other drivers, (continued)
- [Qemu-devel] [PULL 041/100] block: expose crypto option names / defs to other drivers, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 052/100] qcow2: extend specification to cover LUKS encryption, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 049/100] qcow: convert QCow to use QCryptoBlock for encryption, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 050/100] qcow2: make qcow2_encrypt_sectors encrypt in place, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 055/100] iotests: enable tests 134 and 158 to work with qcow (v1), Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 048/100] qcow: make encrypt_sectors encrypt in place, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 054/100] qcow2: add iotests to cover LUKS encryption support, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 059/100] qcow2: report encryption specific image information, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 056/100] block: rip out all traces of password prompting, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 047/100] block: deprecate "encryption=on" in favor of "encrypt.format=aes", Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 062/100] mirror: Fix inconsistent backing AioContext for after mirroring,
Kevin Wolf <=
- [Qemu-devel] [PULL 061/100] iotests: 181 does not work for all formats, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 060/100] docs: document encryption options for qcow, qcow2 and luks, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 057/100] block: remove all encryption handling APIs, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 058/100] block: pass option prefix down to crypto layer, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 051/100] qcow2: convert QCow2 to use QCryptoBlock for encryption, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 063/100] specs/qcow2: fix bitmap granularity qemu-specific note, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 064/100] specs/qcow2: do not use wording 'bitmap header', Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 067/100] block: fix bdrv_dirty_bitmap_granularity signature, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 068/100] block/dirty-bitmap: add deserialize_ones func, Kevin Wolf, 2017/07/07
- [Qemu-devel] [PULL 066/100] tests: add hbitmap iter test, Kevin Wolf, 2017/07/07