]> git.proxmox.com Git - mirror_qemu.git/commit
block: Fix AioContext switch for drained node
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 Feb 2019 15:51:17 +0000 (16:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 25 Feb 2019 14:03:19 +0000 (15:03 +0100)
commite64f25f30b80a71bd4e409ed518c39eeb5905166
treea1805dc1b40dc182433dd6b1a6ae46e66ed00f7f
parent6c75d761d0a6d8b235140dd97493006a0cd61af4
block: Fix AioContext switch for drained node

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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block.c