OSDN Git Service

mirror: follow AioContext change gracefully
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 16 Jun 2016 16:56:28 +0000 (17:56 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 13:25:41 +0000 (14:25 +0100)
commit565ac01f8d35236844dd0257a185f81425cd4b6a
tree31b21ed53f6d1a0a4f313563c77de9af16b9f474
parent463e0be101cb5a78ca6ee517d58604c3f3637bcd
mirror: follow AioContext change gracefully

Add block_job_pause_point() calls to mark quiescent points and make sure
to complete in-flight requests when switching AioContexts.

This patch solves undefined behavior in the mirror block job when the
BDS AioContext is changed by dataplane.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 1466096189-6477-8-git-send-email-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c