From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5wd7-0007fd-7r for qemu-devel@nongnu.org; Wed, 03 May 2017 11:55:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5wd3-0007vp-7M for qemu-devel@nongnu.org; Wed, 03 May 2017 11:55:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36582) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d5wd2-0007tk-V9 for qemu-devel@nongnu.org; Wed, 03 May 2017 11:55:49 -0400 Date: Wed, 3 May 2017 16:55:44 +0100 From: "Richard W.M. Jones" Message-ID: <20170503155544.GE27432@redhat.com> References: <20170227163447.20428-1-stefanha@redhat.com> <20170227163447.20428-2-stefanha@redhat.com> <20170503145418.GB27432@redhat.com> <182d640c-c892-993e-06d4-a9cdd9f363d6@redhat.com> <20170503153400.GD27432@redhat.com> <9489b184-019a-c644-a54f-b795f56f22a1@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9489b184-019a-c644-a54f-b795f56f22a1@redhat.com> Subject: Re: [Qemu-devel] [PULL 1/4] curl: do not use aio_context_acquire/release List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel@nongnu.org, Stefan Hajnoczi On Wed, May 03, 2017 at 05:46:49PM +0200, Paolo Bonzini wrote: > Please test this: > > diff --git a/block/curl.c b/block/curl.c > index 2708d57c2f..cfe02bfd79 100644 > --- a/block/curl.c > +++ b/block/curl.c > @@ -467,7 +467,9 @@ static CURLState *curl_init_state(BlockDriverState > *bs, BDRVCURLState *s) > break; > } > if (!state) { > + qemu_mutex_unlock(&s->mutex); > aio_poll(bdrv_get_aio_context(bs), true); > + qemu_mutex_lock(&s->mutex); > } > } while(!state); > > Yes, this fixes it, thanks Paolo. Reported-by: Kun Wei Reviewed-by: Richard W.M. Jones Tested-by: Richard W.M. Jones Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/