Received: from eggs.gnu.org ([2001:4830:134:3::10]:42722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfaCb-0000Ow-CN for qemu-devel@nongnu.org; Thu, 01 Sep 2016 18:11:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfaCZ-0008UM-3h for qemu-devel@nongnu.org; Thu, 01 Sep 2016 18:11:16 -0400 References: <1472767012-7641-1-git-send-email-jsnow@redhat.com> <1472767012-7641-2-git-send-email-jsnow@redhat.com> From: Eric Blake Message-ID: <2b758463-6cfa-c052-3ae4-d10b4fc4f222@redhat.com> Date: Thu, 1 Sep 2016 17:11:06 -0500 MIME-Version: 1.0 In-Reply-To: <1472767012-7641-2-git-send-email-jsnow@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lLIcRS1Qx37TXlniW03T0kKOt0mNGilAb" Subject: Re: [Qemu-devel] [PATCH v2 1/1] block-backend: allow flush on devices with open tray List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lLIcRS1Qx37TXlniW03T0kKOt0mNGilAb From: Eric Blake To: John Snow , qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org Message-ID: <2b758463-6cfa-c052-3ae4-d10b4fc4f222@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 1/1] block-backend: allow flush on devices with open tray References: <1472767012-7641-1-git-send-email-jsnow@redhat.com> <1472767012-7641-2-git-send-email-jsnow@redhat.com> In-Reply-To: <1472767012-7641-2-git-send-email-jsnow@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/01/2016 04:56 PM, John Snow wrote: > If a device still has an attached BDS because the medium has not yet > been removed, we will be unable to migrate to a new host because > blk_flush will return an error for that backend. >=20 > Replace the call to blk_is_available to blk_is_inserted to weaken > the check and allow flushes from the backend to work, while still > disallowing flushes from the frontend/device model to work. Sounds slightly nicer if you stop short: s/ to work// >=20 > This fixes a regression present in 2.6.0 caused by the following commit= : > fe1a9cbc339bb54d20f1ca4c1e8788d16944d5cf > block: Move some bdrv_*_all() functions to BB >=20 > Signed-off-by: John Snow > --- > block/block-backend.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Eric Blake However, I don't have an offhand suggestion on how best to test it. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --lLIcRS1Qx37TXlniW03T0kKOt0mNGilAb 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXyKd7AAoJEKeha0olJ0NqYj8IAI88Rk5qDgGODabLOpxODy6t Xr8a75fPgunxFKB7YAPCdQ0+FZz5/oYGnJ2pt2ak9cc1LEnQBGHnRId5G/n0LK+6 paREzJjV49owvQv82zRDM9JsohN1fR1sbmwi9tH5LYm9KSbYaW6Ha1CNGPpkhmln eukdrAOY+ykjjOltKTGzVo6sSpunmqKQUH+kluJFkrWISFNOx1utLl47GpvZKFNN I3YNtMUf0IYm6AxMtadbQTnpTcgqcfRqCdsgAMLesECu7VwS03g7IUUhLjCykQ6b OoQ2BDMgGxnMg0vN0HvrJI98SFcD5GbBdwsEXTlPHQeYG2sIs4LLxMOt35BZEiQ= =T+wT -----END PGP SIGNATURE----- --lLIcRS1Qx37TXlniW03T0kKOt0mNGilAb--