Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-18 Thread Arun R Bharadwaj
* Anthony Liguori [2010-11-15 15:13:24]: > On 11/15/2010 11:53 AM, Arun R Bharadwaj wrote: > >From: Gautham R Shenoy > > > >This patch creates a generic asynchronous-task-offloading infrastructure > >named > >threadlets. > > > >The patch creates a global queue on-to which subsystems can queue th

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-15 Thread Anthony Liguori
On 11/15/2010 11:53 AM, Arun R Bharadwaj wrote: From: Gautham R Shenoy This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue on-to which subsystems can queue their tasks to be executed asynchronously. The patch also provides

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-15 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue on-to which subsystems can queue their tasks to be executed asynchronously. The patch also provides API's that allow a subsystem to create a private

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Stefan Hajnoczi
On Wed, Nov 10, 2010 at 5:54 PM, Arun R Bharadwaj wrote: > * Stefan Hajnoczi [2010-11-10 13:45:29]: >> On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj >> wrote: >> I wonder if the condition variable has a measurable performance >> overhead.  We unconditionally broadcast on paiocb completion.  

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Arun R Bharadwaj
* Stefan Hajnoczi [2010-11-10 13:45:29]: > On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj > wrote: > > @@ -301,106 +431,58 @@ static ssize_t handle_aiocb_rw(struct qemu_paiocb > > *aiocb) > >     return nbytes; > >  } > > > > -static void *aio_thread(void *unused) > > +static void aio_thread

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Stefan Hajnoczi
On Wed, Nov 10, 2010 at 1:19 PM, Arun R Bharadwaj wrote: > @@ -301,106 +431,58 @@ static ssize_t handle_aiocb_rw(struct qemu_paiocb > *aiocb) >     return nbytes; >  } > > -static void *aio_thread(void *unused) > +static void aio_thread(ThreadletWork *work) >  { >     pid_t pid; > +    struct qem

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-10 Thread Arun R Bharadwaj
From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue on-to which subsystems can queue their tasks to be executed asynchronously. The patch also provides API's that allow a subsystem to create a private

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-09 Thread Stefan Hajnoczi
On Tue, Nov 9, 2010 at 12:06 PM, Arun R Bharadwaj wrote: > * Stefan Hajnoczi [2010-11-08 21:29:12]: > >> On Mon, Nov 8, 2010 at 2:33 PM, Arun R Bharadwaj >> wrote: >> > diff --git a/Makefile.objs b/Makefile.objs >> > index cd5a24b..3b7ec27 100644 >> > --- a/Makefile.objs >> > +++ b/Makefile.objs

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-09 Thread Arun R Bharadwaj
* Stefan Hajnoczi [2010-11-08 21:29:12]: > On Mon, Nov 8, 2010 at 2:33 PM, Arun R Bharadwaj > wrote: > > diff --git a/Makefile.objs b/Makefile.objs > > index cd5a24b..3b7ec27 100644 > > --- a/Makefile.objs > > +++ b/Makefile.objs > > @@ -9,6 +9,7 @@ qobject-obj-y += qerror.o > > > > block-obj-y

Re: [Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-08 Thread Stefan Hajnoczi
On Mon, Nov 8, 2010 at 2:33 PM, Arun R Bharadwaj wrote: > diff --git a/Makefile.objs b/Makefile.objs > index cd5a24b..3b7ec27 100644 > --- a/Makefile.objs > +++ b/Makefile.objs > @@ -9,6 +9,7 @@ qobject-obj-y += qerror.o > > block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-08 Thread Arun R Bharadwaj
From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue on-to which subsystems can queue their tasks to be executed asynchronously. The patch also provides API's that allow a subsystem to create a private

[Qemu-devel] [PATCH 1/3] Make paio subsystem use threadlets infrastructure

2010-11-08 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2010-11-08 16:16:50]: Make paio subsystem use threadlets infrastructure From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The patch creates a global queue on-to which subsystems can queue their tasks to be exe