From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGBZH-00037T-NV for qemu-devel@nongnu.org; Tue, 27 Jan 2015 14:12:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGBZD-0000hr-Kl for qemu-devel@nongnu.org; Tue, 27 Jan 2015 14:12:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGBZD-0000hl-Bu for qemu-devel@nongnu.org; Tue, 27 Jan 2015 14:12:51 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0RJCodl026392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 27 Jan 2015 14:12:51 -0500 Message-ID: <54C7E331.2000906@redhat.com> Date: Tue, 27 Jan 2015 12:12:49 -0700 From: Eric Blake MIME-Version: 1.0 References: <1422288204-29271-1-git-send-email-mreitz@redhat.com> <1422288204-29271-6-git-send-email-mreitz@redhat.com> In-Reply-To: <1422288204-29271-6-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aBGlwiNARpWJgR7cWF3mFQWhef8sn1dFK" Subject: Re: [Qemu-devel] [PATCH 05/50] block: Fix BB AIOCB AioContext without BDS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , Jeff Cody , Markus Armbruster , Stefan Hajnoczi , john@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --aBGlwiNARpWJgR7cWF3mFQWhef8sn1dFK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/26/2015 09:02 AM, Max Reitz wrote: > Fix the BlockBackend's AIOCB AioContext for aborting AIO in case there > is no BDS. If there is no implementation of AIOCBInfo::get_aio_context(= ) > the AioContext is derived from the BDS the AIOCB belongs to. If that BD= S > is NULL (because it has been removed from the BB) this will not work. >=20 > This patch makes blk_get_aio_context() fall back to the main loop > context if the BDS pointer is NULL and implements > AIOCBInfo::get_aio_context() (blk_aiocb_get_aio_context()) which invoke= s > blk_get_aio_context(). >=20 > Signed-off-by: Max Reitz > --- > block/block-backend.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --aBGlwiNARpWJgR7cWF3mFQWhef8sn1dFK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJUx+MxAAoJEKeha0olJ0NqsUoH/1JL3it1rHaJuOk1bVEsSQNE hwU5a2Vrx3fRd4dqaRlFUqnXEr4Cx6fqW8Hlv5nsTzu5YKtT0ohl8mB9gW5D5yGY GlcOlT8HLAV6A9apdZUt4ich65yvp+e+9jO8epysiAHT5U0zVElwPLncmuSyPXLT vYPXyPdbwftkSPvzYRI6meINyS27vIwgbobxeo5eeV17GtlRFrx+KSCDYHKxxuy0 wL9fybU94HOhQqnc54GZkdjkC4d0lTQpaT72zqqCOqXy0yWjW5sgI9ckwn7LrGv/ 5Cstw+iwwMuUviO1HLls4yCVXuXCXBIHM/gdmV10Z8gKZ7NgbNd5Er2T7U+9z+0= =qwet -----END PGP SIGNATURE----- --aBGlwiNARpWJgR7cWF3mFQWhef8sn1dFK--