[Qemu-devel] [PATCH 1/3] curl: do not use aio_context_acquire/release

2017-02-22 Thread Paolo Bonzini
Now that all bottom halves and callbacks take care of taking the AioContext lock, we can migrate some users away from it and to a specific QemuMutex or CoMutex. Protect BDRVCURLState access with a QemuMutex. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- block/curl.c | 24 ++

Re: [Qemu-devel] [PATCH 1/3] curl: do not use aio_context_acquire/release

2017-02-22 Thread Stefan Hajnoczi
On Fri, Feb 17, 2017 at 08:40:26PM +0100, Paolo Bonzini wrote: > Now that all bottom halves and callbacks take care of taking the > AioContext lock, we can migrate some users away from it and to a > specific QemuMutex or CoMutex. > > Protect BDRVCURLState access with a QemuMutex. > > Signed-off-b

[Qemu-devel] [PATCH 1/3] curl: do not use aio_context_acquire/release

2017-02-17 Thread Paolo Bonzini
Now that all bottom halves and callbacks take care of taking the AioContext lock, we can migrate some users away from it and to a specific QemuMutex or CoMutex. Protect BDRVCURLState access with a QemuMutex. Signed-off-by: Paolo Bonzini --- block/curl.c | 24 +++- 1 file cha