blockjob: add AioContext attached callback
commit463e0be101cb5a78ca6ee517d58604c3f3637bcd
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 16 Jun 2016 16:56:27 +0000 (16 17:56 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 13:25:41 +0000 (20 14:25 +0100)
tree9fcee9ddef069c53575c6af45baa52c4490da974
parente8a095dadb70e2ea6d5169d261920db3747bfa45
blockjob: add AioContext attached callback

Block jobs that use additional BDSes or event loop resources need a
callback to get their affairs in order when the AioContext is switched.

Simple block jobs don't need an attach callback, they automatically work
thanks to the generic attach/detach notifiers that this patch adds.

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