From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC55y-0000r1-UY for qemu-devel@nongnu.org; Wed, 30 Nov 2016 08:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC55v-0006da-2R for qemu-devel@nongnu.org; Wed, 30 Nov 2016 08:38:46 -0500 Date: Wed, 30 Nov 2016 13:37:40 +0000 From: Stefan Hajnoczi Message-ID: <20161130133740.GK2497@stefanha-x1.localdomain> References: <20161129114707.2975-1-pbonzini@redhat.com> <20161129114707.2975-10-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k18oBAwMkTg3OUap" Content-Disposition: inline In-Reply-To: <20161129114707.2975-10-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 09/10] aio: push aio_context_acquire/release down to dispatching List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org --k18oBAwMkTg3OUap Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 29, 2016 at 12:47:06PM +0100, Paolo Bonzini wrote: > The AioContext data structures are now protected by list_lock and/or > they are walked with FOREACH_RCU primitives. There is no need anymore > to acquire the AioContext for the entire duration of aio_dispatch. > Instead, just acquire it before and after invoking the callbacks. > The next step is then to push it further down. >=20 > Signed-off-by: Paolo Bonzini > --- > aio-posix.c | 15 ++++++--------- > aio-win32.c | 15 +++++++-------- > async.c | 2 ++ > 3 files changed, 15 insertions(+), 17 deletions(-) Reviewed-by: Stefan Hajnoczi --k18oBAwMkTg3OUap Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYPtYkAAoJEJykq7OBq3PIkkUIAMFeMd/gy7llE8wTSV5Xsavt g10+1lOojwhWIWB7wz9G6PNduebOjjEgnkGtD1dEiejPQ0qSVBdGge2zVM1KFyrP HrP0tGrDmLrk/83pOnWjW+4RXtJ5rlO4FaDw/yfwI4kRQwIb+cOdllWK7nufSs3Q yUkXi/T/1c/z34MneCrwpYYUfzHOP9kbMVcxPN1896SuLIyLUVOVFS8Vw9FHa8Ku AZc5suhihawURxf/cYYdoRc8ENn7QK3kTLSEhT5jG5bGFFSyaFe9+hNXWAXG4VDv +YdSUcIlRiLfWLJRrYD6CvpuRMnxmQOO/2T47CptsttNAA1tnwLBbrV5/oaExdM= =wvcw -----END PGP SIGNATURE----- --k18oBAwMkTg3OUap--