OSDN Git Service

blockdev-backup: Don't move target AioContext if it's attached
authorFam Zheng <famz@redhat.com>
Mon, 23 May 2016 02:19:36 +0000 (10:19 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Jun 2016 13:40:50 +0000 (14:40 +0100)
commitefd7556708bdfb61dab259e08bd71fbe5680ddcd
tree0ec89744ce10b269871e4d6df58fe83388a169ae
parent0d97891312d24891868e341674541f4147c7faf4
blockdev-backup: Don't move target AioContext if it's attached

If the BDS is attached, it will want to stay on the AioContext where its
BlockBackend is. Don't call bdrv_set_aio_context in this case.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1463969978-24970-3-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c