Re: [Qemu-devel] [RFC 4/5] block: Add AIO followers

2014-06-05 Thread Max Reitz
On 04.06.2014 14:41, Stefan Hajnoczi wrote: On Sat, May 31, 2014 at 08:43:11PM +0200, Max Reitz wrote: 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

Re: [Qemu-devel] [RFC 4/5] block: Add AIO followers

2014-06-04 Thread Stefan Hajnoczi
On Sat, May 31, 2014 at 08:43:11PM +0200, Max Reitz wrote: 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

[Qemu-devel] [RFC 4/5] block: Add AIO followers

2014-05-31 Thread Max Reitz
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.