Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-12 Thread Fam Zheng
On Mon, 10/12 10:31, Kevin Wolf wrote: > Am 09.10.2015 um 18:27 hat Fam Zheng geschrieben: > > On Fri, 10/09 16:31, Kevin Wolf wrote: > > > Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > > > > Signed-off-by: Fam Zheng > > > > --- > > > > aio-posix.c | 3 ++- > > > > aio-win32.c

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-12 Thread Kevin Wolf
Am 09.10.2015 um 18:27 hat Fam Zheng geschrieben: > On Fri, 10/09 16:31, Kevin Wolf wrote: > > Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > > > Signed-off-by: Fam Zheng > > > --- > > > aio-posix.c | 3 ++- > > > aio-win32.c | 3 ++- > > > async.c | 42

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-09 Thread Fam Zheng
On Fri, 10/09 16:31, Kevin Wolf wrote: > Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > > Signed-off-by: Fam Zheng > > --- > > aio-posix.c | 3 ++- > > aio-win32.c | 3 ++- > > async.c | 42 ++ > > include/block/aio.h | 30

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-09 Thread Kevin Wolf
Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > Signed-off-by: Fam Zheng > --- > aio-posix.c | 3 ++- > aio-win32.c | 3 ++- > async.c | 42 ++ > include/block/aio.h | 30 ++ > 4 files changed, 7

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-09 Thread Kevin Wolf
Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > Signed-off-by: Fam Zheng > +void aio_disable_enable_clients(AioContext *ctx, int clients_mask, > +bool is_disable) > +{ > +int i = 1; > +int n = 0; > +aio_context_acquire(ctx); > + > +while (client

[Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-09 Thread Fam Zheng
Signed-off-by: Fam Zheng --- aio-posix.c | 3 ++- aio-win32.c | 3 ++- async.c | 42 ++ include/block/aio.h | 30 ++ 4 files changed, 76 insertions(+), 2 deletions(-) diff --git a/aio-posix.c b/aio-