Re: [Qemu-devel] [PATCH 11/12] nbd: switch to asynchronous operation

2011-09-09 Thread Paolo Bonzini
On 09/09/2011 05:03 PM, Paolo Bonzini wrote: I'm a bit unsure here, actually. So you lock a mutex, send a request, wait for a response, then unlock the mutex. Surely this code doesn't allow more than one request to be in flight at a time? No, it doesn't. It shouldn't be hard to do it though.

Re: [Qemu-devel] [PATCH 11/12] nbd: switch to asynchronous operation

2011-09-09 Thread Paolo Bonzini
On 09/09/2011 04:52 PM, Nicholas Thomas wrote: I'm a bit unsure here, actually. So you lock a mutex, send a request, wait for a response, then unlock the mutex. Surely this code doesn't allow more than one request to be in flight at a time? No, it doesn't. It shouldn't be hard to do it though.

Re: [Qemu-devel] [PATCH 11/12] nbd: switch to asynchronous operation

2011-09-09 Thread Nicholas Thomas
On 08/09/11 16:25, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > block/nbd.c | 167 ++ > nbd.c |8 +++ > 2 files changed, 117 insertions(+), 58 deletions(-) > > diff --git a/block/nbd.c b/block/nbd.c > index 964caa8

[Qemu-devel] [PATCH 11/12] nbd: switch to asynchronous operation

2011-09-08 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block/nbd.c | 167 ++ nbd.c |8 +++ 2 files changed, 117 insertions(+), 58 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index 964caa8..5a75263 100644 --- a/block/nbd.c +++ b/block/nbd.c @@