Re: [PATCH 2/2] block: bdrv_reopen() with backing file in different AioContext

2020-03-06 Thread Kevin Wolf
Am 05.03.2020 um 16:54 hat Alberto Garcia geschrieben: > On Thu 27 Feb 2020 07:18:04 PM CET, Kevin Wolf wrote: > > /* > > - * TODO: before removing the x- prefix from x-blockdev-reopen we > > - * should move the new backing file into the right AioContext > > - * instead of returnin

Re: [PATCH 2/2] block: bdrv_reopen() with backing file in different AioContext

2020-03-05 Thread Alberto Garcia
On Thu 27 Feb 2020 07:18:04 PM CET, Kevin Wolf wrote: > /* > - * TODO: before removing the x- prefix from x-blockdev-reopen we > - * should move the new backing file into the right AioContext > - * instead of returning an error. > + * Check AioContext compatibility so that the

[PATCH 2/2] block: bdrv_reopen() with backing file in different AioContext

2020-02-27 Thread Kevin Wolf
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 --- block.c