From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2cr1-0004wf-Gv for qemu-devel@nongnu.org; Tue, 17 May 2016 07:08:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2cqx-0002Mf-48 for qemu-devel@nongnu.org; Tue, 17 May 2016 07:07:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2cqw-0002MR-Uj for qemu-devel@nongnu.org; Tue, 17 May 2016 07:07:55 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5FE2C04B303 for ; Tue, 17 May 2016 11:07:53 +0000 (UTC) References: <1460384056-29494-1-git-send-email-stefanha@redhat.com> From: Paolo Bonzini Message-ID: <573AFB7E.5000905@redhat.com> Date: Tue, 17 May 2016 13:07:42 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7qEvqdOgWvAkgtmAACng0p6qJ6t6CSP2F" Subject: Re: [Qemu-devel] [RFC for-2.7] block: keep AioContext pointer in BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kevin Wolf This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7qEvqdOgWvAkgtmAACng0p6qJ6t6CSP2F From: Paolo Bonzini To: Max Reitz , Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kevin Wolf Message-ID: <573AFB7E.5000905@redhat.com> Subject: Re: [RFC for-2.7] block: keep AioContext pointer in BlockBackend References: <1460384056-29494-1-git-send-email-stefanha@redhat.com> In-Reply-To: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 17/05/2016 12:52, Max Reitz wrote: > A trivial way to do this would be to query the BDS's AIO context in > blk_get_aio_context() and update the BB's context if they don't match. > The more correct way would probably be to make bdrv_attach_aio_context(= ) > update its BB's (or BBs', in the future) AIO context. That could be another BdrvChild member, couldn't it? Thanks, Paolo --7qEvqdOgWvAkgtmAACng0p6qJ6t6CSP2F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXOvt+AAoJEL/70l94x66DvkoH/iuyvQnx4wlk3Aa2E7to/dv6 /n9tfVX0xParfXVbHprhYDJoTINtFFKp3iDFpCXcZMyo0HAv4pXxBbTx7mcuSGMH T0PjfVC40S3pGsJAQ6DFjlBwKt6d/W+P0oN0V4YzrAzJAuc5HWkIsrEWDy3LIU5y 2xnZYq93icbgKn+/tTUDuzqmOEtVewxc2QQpWUsnHIyiZlQ45/sT56y1yGT51iaW +dnJcgrtn/PkErzCuVR3kg6+NdXzuAUiXZXyZ6jvbhCj3PE+6yn6yfYKM221FhGR ddd0ob0Bvt3dyr3BVGOExHcdXXGcLCoZhbbLp14Ze/MnwC9it1lBMa1Tj4oU5WI= =1d9O -----END PGP SIGNATURE----- --7qEvqdOgWvAkgtmAACng0p6qJ6t6CSP2F--