Re: [Qemu-devel] [PATCH 09/12] block: Fix AioContext switch for drained node

2019-02-18 Thread Eric Blake
On 2/18/19 10:18 AM, Kevin Wolf wrote: > When a drained node changes its AioContext, we need to move its > aio_disable_external() to the new context, too. > > Without this fix, drain_end will try to reenable the new context, which > has never been disabled, so an assertion failure is triggered. >

[Qemu-devel] [PATCH 09/12] block: Fix AioContext switch for drained node

2019-02-18 Thread Kevin Wolf
When a drained node changes its AioContext, we need to move its aio_disable_external() to the new context, too. Without this fix, drain_end will try to reenable the new context, which has never been disabled, so an assertion failure is triggered. Signed-off-by: Kevin Wolf --- block.c | 7