Received: from eggs.gnu.org ([2001:4830:134:3::10]:45553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDD5i-0005DL-AH for qemu-devel@nongnu.org; Fri, 01 Aug 2014 09:41:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDD5c-0000Cz-S1 for qemu-devel@nongnu.org; Fri, 01 Aug 2014 09:41:50 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:47084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDD5c-0000C8-Lf for qemu-devel@nongnu.org; Fri, 01 Aug 2014 09:41:44 -0400 Received: by mail-wi0-f174.google.com with SMTP id d1so1395561wiv.13 for ; Fri, 01 Aug 2014 06:41:43 -0700 (PDT) Date: Fri, 1 Aug 2014 14:41:38 +0100 From: Stefan Hajnoczi Message-ID: <20140801134138.GB11091@stefanha-thinkpad.redhat.com> References: <1405435466-20801-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="neYutvxvOLaeuPCA" Content-Disposition: inline In-Reply-To: <1405435466-20801-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/2] thread-pool: avoid fd usage and fix nested aio_poll() deadlock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , qemu-devel@nongnu.org, Christian Borntraeger --neYutvxvOLaeuPCA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 15, 2014 at 04:44:24PM +0200, Stefan Hajnoczi wrote: > v2: > * Leave BH scheduled so that the code can be simplified [Paolo] >=20 > These patches convert thread-pool.c from EventNotifier to QEMUBH. They t= hen > solve the deadlock when nested aio_poll() calls are made. >=20 > Please speak out whether you want this in QEMU 2.1 or not. I'm not aware= of > the nested aio_poll() deadlock ever having been reported, so maybe we can= defer > to QEMU 2.2. >=20 > Stefan Hajnoczi (2): > thread-pool: avoid per-thread-pool EventNotifier > thread-pool: avoid deadlock in nested aio_poll() calls >=20 > thread-pool.c | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) Thanks, applied to my block-next tree: https://github.com/stefanha/qemu/commits/block-next Stefan --neYutvxvOLaeuPCA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJT25kSAAoJEJykq7OBq3PI8a0H/27P7VrF0Sw9oKcBGEEm21Rv St5CsJ414iDGEsn+l5T+iZ77etSS0kY6ehRQ17zgG8isGhskcLAIhvW6eyfSXTwy XBBfpJnWvAJ6xoVQiiIWBV7bfRlw8H7pAODS9tJN4eJzFVg/la8NicPn+Fe8hmQQ /5ELY980VasMJCIxAHgJehVJIMpNH0Q1HpnJ/f25igWArFbRr9LOuf0pzgpwkA33 MHUF9ivXE4hUaf+LwSgMe35z1GKJE3MIbJC2lVy0A6AwjCHKwJ1JGlVNjGxXIuJb kGBxg7JDEd4ux/fTg2YVGFiIRboSCBZzEaKtu3vQLjYpJOeIJUcLpn1wmn7zYLY= =XLx+ -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA--