mirror: Fix inconsistent backing AioContext for after mirroring
commit5ce6bfe255091d532ec4555d0ede816294cb1703
authorsochin.jiang <sochin.jiang@huawei.com>
Mon, 26 Jun 2017 11:04:24 +0000 (26 19:04 +0800)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Jul 2017 15:44:57 +0000 (11 17:44 +0200)
tree9defcd4352cf25a90664d84dbfa7f9c8f132c7bf
parenta9ed6a919360b998009508be03b056f2b7417ac5
mirror: Fix inconsistent backing AioContext for after mirroring

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 <sochin.jiang@huawei.com>
Message-id: 1498475064-39816-1-git-send-email-sochin.jiang@huawei.com
[mreitz: Reworded commit message]
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c