]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: bdrv_reopen() with backing file in different AioContext
authorKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 14:14:13 +0000 (15:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:34:09 +0000 (17:34 +0100)
commit1de6b45fb5c1489b450df7d1a4c692bba9678ce6
tree383726d81225ad23498c9ebd6f149773fae344ba
parent97518e11c3d902a32386d33797044f6b79bccc6f
block: bdrv_reopen() with backing file in different AioContext

This patch allows bdrv_reopen() (and therefore the x-blockdev-reopen QMP
command) to attach a node as the new backing file even if the node is in
a different AioContext than the parent if one of both nodes can be moved
to the AioContext of the other node.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Message-Id: <20200306141413.30705-3-kwolf@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
tests/qemu-iotests/245