block: Add AIO context notifiers
authorMax Reitz <mreitz@redhat.com>
Fri, 20 Jun 2014 19:57:33 +0000 (21:57 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 29 Aug 2014 09:48:45 +0000 (10:48 +0100)
commit33384421b3abe74555baeaf788b17204cd8c6080
tree15a02040c856cabb6d1916d4d2d4bff6f0916a74
parent958c717df97ea9ca47a2253b8371130fe5f22980
block: Add AIO context notifiers

If a long-running operation on a BDS wants to always remain in the same
AIO context, it somehow needs to keep track of the BDS changing its
context. This adds a function for registering callbacks on a BDS which
are called whenever the BDS is attached or detached from an AIO context.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
include/block/block_int.h