Received: from eggs.gnu.org ([2001:4830:134:3::10]:47534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykrrq-00044E-6w for qemu-devel@nongnu.org; Wed, 22 Apr 2015 06:26:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ykrrl-00086i-8f for qemu-devel@nongnu.org; Wed, 22 Apr 2015 06:26:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykrrl-00086O-2X for qemu-devel@nongnu.org; Wed, 22 Apr 2015 06:26:49 -0400 Date: Wed, 22 Apr 2015 11:26:43 +0100 From: Stefan Hajnoczi Message-ID: <20150422102643.GB20029@stefanha-thinkpad.redhat.com> References: <1424449612-18215-1-git-send-email-pbonzini@redhat.com> <551A7864.9030806@redhat.com> <553672D3.7080100@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline In-Reply-To: <553672D3.7080100@redhat.com> Subject: Re: [Qemu-devel] [PATCH RFC 0/3] iothread: release iothread around aio_poll List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Stefan Hajnoczi , Fam Zheng , qemu-devel --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 21, 2015 at 05:54:59PM +0200, Paolo Bonzini wrote: >=20 >=20 > On 21/04/2015 17:40, Stefan Hajnoczi wrote: > >> > > >> > Stefan, can you put this on track for 2.4 or do you need a repost? > > This series causes qemu-iotests -qcow2 091 to fail: > >=20 > > 9f83aea22314d928bb272153ff37d2d7f5adbf06 is the first bad commit > > commit 9f83aea22314d928bb272153ff37d2d7f5adbf06 > > Author: Paolo Bonzini > > Date: Fri Feb 20 17:26:50 2015 +0100 > >=20 > > aio-posix: move pollfds to thread-local storage >=20 > Oops... what I intended is this: >=20 > diff --git a/aio-posix.c b/aio-posix.c > index 4a30b77..e411591 100644 > --- a/aio-posix.c > +++ b/aio-posix.c > @@ -254,8 +254,7 @@ bool aio_poll(AioContext *ctx, bool blocking) > aio_set_dispatching(ctx, !blocking); > =20 > ctx->walking_handlers++; > - > - npfd =3D 0; > + assert(npfd =3D=3D 0); > =20 > /* fill pollfds */ > QLIST_FOREACH(node, &ctx->aio_handlers, node) { > @@ -276,6 +275,7 @@ bool aio_poll(AioContext *ctx, bool blocking) > } > } > =20 > + npfd =3D 0; > ctx->walking_handlers--; > =20 > /* Run dispatch even if there were no readable fds to run timers */ >=20 > but the above is totally untested, so feel free to just remove > the assertion or also to drop the series. Thanks, I squashed this change in and now qemu-iotests passes. Stefan --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVN3djAAoJEJykq7OBq3PIk5wH/2LjVVSkzLzabjk9ueEytYZD r/BJUe2MUv8L66RVrGbKaq+2ofpoEJIxCfG22pmWa0rmbLG7bL+6I7bVT4yljec5 /mewOHJ6fDMstCdOHTCAVWjSmSEGNizT2z/Sq1puGljMKdk5lfE7Xln+bdhR44GA OcmRtcHidt2l/8kMhLCepkmszdysT/hPZkoMpa1lKi+kWTaURuz8vQk4GnsXn3l0 MqFIEWNH6KBflwqcZQlREQsZYa3chijnqeNEDp/pGaDnvgNsSKlesj8hacK5aqom RgV0P3yq5nHU3pUwOFyONYfMGYBtxUYdVcZQxj/KDsLbFhRHuO//EOFS9oJCzBk= =9XKs -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU--