Re: [Qemu-devel] [RFC PATCH v0 1/3] gluster: Convert aio routines into coroutines

2013-12-05 Thread Bharata B Rao
On Tue, Dec 03, 2013 at 03:04:01PM +0100, Stefan Hajnoczi wrote: > On Fri, Nov 22, 2013 at 12:46:16PM +0530, Bharata B Rao wrote: > > +qemu_bh_delete(acb->bh); > > +acb->bh = NULL; > > +qemu_coroutine_enter(acb->coroutine, NULL); > > +if (acb->finished) { > > +*acb->finished

Re: [Qemu-devel] [RFC PATCH v0 1/3] gluster: Convert aio routines into coroutines

2013-12-03 Thread Stefan Hajnoczi
On Fri, Nov 22, 2013 at 12:46:16PM +0530, Bharata B Rao wrote: > +qemu_bh_delete(acb->bh); > +acb->bh = NULL; > +qemu_coroutine_enter(acb->coroutine, NULL); > +if (acb->finished) { > +*acb->finished = true; > +} Now that aio interfaces are gone ->finished and cancellati

[Qemu-devel] [RFC PATCH v0 1/3] gluster: Convert aio routines into coroutines

2013-11-21 Thread Bharata B Rao
Convert the read, write, flush and discard implementations from aio-based ones to coroutine based ones. Signed-off-by: Bharata B Rao --- block/gluster.c | 168 +--- 1 file changed, 63 insertions(+), 105 deletions(-) diff --git a/block/gluster.