Received: from eggs.gnu.org ([2001:4830:134:3::10]:55029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcxEN-00046C-I2 for qemu-devel@nongnu.org; Tue, 31 Mar 2015 10:33:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcxEI-0005R6-Re for qemu-devel@nongnu.org; Tue, 31 Mar 2015 10:33:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcxEI-0005R2-N5 for qemu-devel@nongnu.org; Tue, 31 Mar 2015 10:33:22 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id CE789B5E8B for ; Tue, 31 Mar 2015 14:33:21 +0000 (UTC) Date: Tue, 31 Mar 2015 15:33:19 +0100 From: Stefan Hajnoczi Message-ID: <20150331143319.GF27156@stefanha-thinkpad.redhat.com> References: <1424449612-18215-1-git-send-email-pbonzini@redhat.com> <551A7864.9030806@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0hHDr/TIsw4o3iPK" Content-Disposition: inline In-Reply-To: <551A7864.9030806@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: famz@redhat.com, qemu-devel@nongnu.org --0hHDr/TIsw4o3iPK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 31, 2015 at 12:35:16PM +0200, Paolo Bonzini wrote: >=20 >=20 > On 20/02/2015 17:26, Paolo Bonzini wrote: > > Right now, iothreads are relying on a "contention callback" to release > > the AioContext (e.g. for block device operations or to do bdrv_drain_al= l). > > This is necessary because aio_poll needs to be called within an > > aio_context_acquire. > >=20 > > This series drops this requirement for aio_poll, with two effects: > >=20 > > 1) it makes it possible to remove the "contention callback" in RFifoLock > > (and possibly to convert it to a normal GRecMutex, which is why I am not > > including a patch to remove callbacks from RFifoLock). > >=20 > > 2) it makes it possible to start work around making critical sections > > for the block layer fine-grained. > >=20 > > In order to do this, some data is moved from AioContext to local storag= e. > > Stack allocation has size limitations, so thread-local storage is used > > instead. There are no reentrancy problems because the data is only live > > throughout a small part of aio_poll, and in particular not during the > > invocation of callbacks. > >=20 > > Comments? >=20 > Stefan, can you put this on track for 2.4 or do you need a repost? Done --0hHDr/TIsw4o3iPK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVGrAvAAoJEJykq7OBq3PItX0H/1cJGl9BUuwJdRoeD7w1NACg KUWMdtsLrFfu7LRPucSsOmSPhDsw59PpoOKpM4gdHCTjd0RMwMrpu6/oBbzOQb0N q+uCUhocN558ERBIMCTCgAvWh1BkEbFsBAmMvmF/XRzJpL1GcHqi6SQ7ddPJ/7xp cq26Uis8UYFCuy3wKQLfm/NOetBn0TZ0f/AMvNgGOI3D9/wDt9GPVG7bx5Jx9iDW 1JcPaLY71DzUQfEB3lfrmr1ztNKWL00DDTOVKPgnah9jWEPPRqaJ9kPCgNS7+Aqr QJ7lCUVTBRCxP/cUYXgmqktX2iJsGA3va+DpaDgnID6TQDSm3vzVOUFgzZbScsQ= =uCRa -----END PGP SIGNATURE----- --0hHDr/TIsw4o3iPK--