commit | 33384421b3abe74555baeaf788b17204cd8c6080 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Fri Jun 20 21:57:33 2014 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Aug 29 10:48:45 2014 +0100 |
tree | 15a02040c856cabb6d1916d4d2d4bff6f0916a74 | |
parent | 958c717df97ea9ca47a2253b8371130fe5f22980 [diff] |
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>