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

2010-10-27 Thread Stefan Hajnoczi
On Tue, Oct 26, 2010 at 3:14 PM, Arun R Bharadwaj wrote: > @@ -536,14 +442,15 @@ static void paio_cancel(BlockDriverAIOCB *blockacb) >     struct qemu_paiocb *acb = (struct qemu_paiocb *)blockacb; >     int active = 0; > > -    mutex_lock(&lock); >     if (!acb->active) { > -        QTAILQ_REMOVE(

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

2010-10-26 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy Signed-off-by: Sripathi Kodi Signed-off-by: Arun

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

2010-10-23 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 1:10 PM, Arun R Bharadwaj wrote: >  static ssize_t qemu_paio_return(struct qemu_paiocb *aiocb) >  { >     ssize_t ret; > > -    mutex_lock(&lock); >     ret = aiocb->ret; > -    mutex_unlock(&lock); > - >     return ret; >  } > > @@ -536,14 +442,15 @@ static void paio_cance

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

2010-10-21 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy Signed-off-by: Sripathi Kodi Signed-off-by: Arun

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

2010-10-21 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 9:40 AM, Arun R Bharadwaj wrote: > * Stefan Hajnoczi [2010-10-20 10:30:38]: > >> On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj >> wrote: >> > From: Gautham R Shenoy >> > >> > This patch makes the paio subsystem use the threadlet framework thereby >> > decoupling asyn

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

2010-10-21 Thread Arun R Bharadwaj
* Stefan Hajnoczi [2010-10-20 10:30:38]: > On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj > wrote: > > From: Gautham R Shenoy > > > > This patch makes the paio subsystem use the threadlet framework thereby > > decoupling asynchronous threading framework portion out of > > posix-aio-compat.c

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

2010-10-20 Thread Anthony Liguori
On 10/20/2010 04:30 AM, Stefan Hajnoczi wrote: } else if (acb->ret == -EINPROGRESS) { active = 1; } -mutex_unlock(&lock); if (active) { /* fail safe: if the aio could not be canceled, we wait for while (qemu_paio_error(acb) == EINPROGRESS) ; Ti

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

2010-10-20 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj wrote: > From: Gautham R Shenoy > > This patch makes the paio subsystem use the threadlet framework thereby > decoupling asynchronous threading framework portion out of > posix-aio-compat.c > > The patch has been tested with fstress. > > Signed-of

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

2010-10-20 Thread Kevin Wolf
Am 19.10.2010 19:43, schrieb Arun R Bharadwaj: > From: Gautham R Shenoy > > This patch makes the paio subsystem use the threadlet framework thereby > decoupling asynchronous threading framework portion out of > posix-aio-compat.c > > The patch has been tested with fstress. > > Signed-off-by: Ga

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

2010-10-19 Thread Balbir Singh
* Arun R B [2010-10-19 23:13:20]: > From: Gautham R Shenoy > > This patch makes the paio subsystem use the threadlet framework thereby > decoupling asynchronous threading framework portion out of > posix-aio-compat.c > > The patch has been tested with fstress. > > Signed-off-by: Gautham R She

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

2010-10-19 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy Signed-off-by: Sripathi Kodi --- posix-aio-comp

[Qemu-devel] [PATCH 2/3]: Make paio subsystem use threadlets

2010-10-13 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2010-10-13 22:14:39]: Make paio subsystem use threadlets From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Si

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

2010-10-13 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy Signed-off-by: Sripathi Kodi --- posix-aio-comp