Received: from eggs.gnu.org ([2001:4830:134:3::10]:52542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c533D-0001aR-IM for qemu-devel@nongnu.org; Thu, 10 Nov 2016 23:02:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c533C-0003S2-Om for qemu-devel@nongnu.org; Thu, 10 Nov 2016 23:02:51 -0500 References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> <3a8e046e-7a31-bdff-4dcc-7b3d42ab00a2@redhat.com> <24fe0f9a-e512-1629-9f8c-78021b0b1be3@redhat.com> <4601924b-2081-394f-16af-b3595130e429@kamp.de> From: Eric Blake Message-ID: <7440eb08-dbfc-a73e-bff5-536cf2a9b740@redhat.com> Date: Thu, 10 Nov 2016 22:02:42 -0600 MIME-Version: 1.0 In-Reply-To: <4601924b-2081-394f-16af-b3595130e429@kamp.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xIWk7l5OPHvIMRwsOvFinlMvSbeGfAMcP" Subject: Re: [Qemu-devel] [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xIWk7l5OPHvIMRwsOvFinlMvSbeGfAMcP From: Eric Blake To: Peter Lieven , Paolo Bonzini , Fam Zheng Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Stefan Hajnoczi , Kevin Wolf , Max Reitz Message-ID: <7440eb08-dbfc-a73e-bff5-536cf2a9b740@redhat.com> Subject: Re: [PATCH 4/4] block: Cater to iscsi with non-power-of-2 discard References: <1469129688-22848-1-git-send-email-eblake@redhat.com> <1469129688-22848-5-git-send-email-eblake@redhat.com> <20160727072543.GF23258@ad.usersys.redhat.com> <5799704D.9060408@redhat.com> <18c31752-8399-1763-a42e-c2b924920b55@redhat.com> <12c8e895-f8ab-825f-82e7-4a2c8cc22de5@kamp.de> <9078195b-160a-e18f-b8ef-c9f2ba712416@redhat.com> <4cd56bb4-fa0d-493c-18b1-4cec0467a6bf@kamp.de> <567caf97-24bd-b5e6-a999-405ef01b2c21@redhat.com> <78e7e5d9-4f43-c50d-4531-de5c1a0e1a83@kamp.de> <25f42457-369e-152e-edce-44a4835c6c68@redhat.com> <3a8e046e-7a31-bdff-4dcc-7b3d42ab00a2@redhat.com> <24fe0f9a-e512-1629-9f8c-78021b0b1be3@redhat.com> <4601924b-2081-394f-16af-b3595130e429@kamp.de> In-Reply-To: <4601924b-2081-394f-16af-b3595130e429@kamp.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/08/2016 05:03 AM, Peter Lieven wrote: > Am 25.10.2016 um 18:12 schrieb Eric Blake: >> On 10/25/2016 09:36 AM, Paolo Bonzini wrote: >>> >>> On 25/10/2016 16:35, Eric Blake wrote: >>>> So your argument is that we should always pass down every unaligned >>>> less-than-optimum discard request all the way to the hardware, rathe= r >>>> than dropping it higher in the stack, even though discard requests a= re >>>> already advisory, in order to leave the hardware as the ultimate >>>> decision on whether to ignore the unaligned request? >>> Yes, I agree with Peter as to this. >> Okay, I'll work on patches. I think it counts as bug fix, so appropria= te >> even if I miss soft freeze (I'd still like to get NBD write zero suppo= rt >> into 2.8, since it already missed 2.7, but that one is still awaiting >> review with not much time left). >> >=20 > Hi Eric, >=20 > have you had time to look at this? > If you need help, let me know. Patches posted, but testing help would be appreciated since you have the actual hardware that exhibits the issue. I'm also trying to write a patch to extend the blkdebug driver to share this "feature" of a 15M page, and write a qemu-iotest to make it harder to regress in the future. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --xIWk7l5OPHvIMRwsOvFinlMvSbeGfAMcP 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/ iQEcBAEBCAAGBQJYJULiAAoJEKeha0olJ0NqbK8IAJBPc17EptnpUVXnG6taTkcs P4GfDiv9+QulPJlJ0AC4KmTsYoof87lJFJkOh4MqNBA3Lkz/AlbI2EERxWbFgJcQ NWr5WlbNzWlAl1IUnBVqZDHqsGrgWjbtqZNVUJn2N6qYxm3gWu2xoZ4QAFiuqBHe IvEsgvXXNvDd4xijDQmMLSGPjX8WbyDqgUIv4hnMeLXEKqQms5Y6TjnfoEfbJmKB DFq1CBbZp1CeVy9aQIXnET16lilcMm8AJ498zGL+Bax6GcwOWEonxgestzlW1yuY Qq6uqyXlpKXsgVWHDbrBrglm8CraKmsvBNmyNqufu8ZbU+jToxOJKKETA3Nw62Q= =s6y4 -----END PGP SIGNATURE----- --xIWk7l5OPHvIMRwsOvFinlMvSbeGfAMcP--