Received: from eggs.gnu.org ([2001:4830:134:3::10]:53695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7U0y-0003K2-SY for qemu-devel@nongnu.org; Thu, 17 Nov 2016 16:14:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7U0y-0001nY-2j for qemu-devel@nongnu.org; Thu, 17 Nov 2016 16:14:36 -0500 References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-2-git-send-email-eblake@redhat.com> From: Eric Blake Message-ID: Date: Thu, 17 Nov 2016 15:14:29 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b6QtW1CIFBpOg8x9WhLc7FXEO7oiPXkX6" Subject: Re: [Qemu-devel] [PATCH v2 1/9] nbd: Allow unmap and fua during write zeroes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com, qemu-stable@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --b6QtW1CIFBpOg8x9WhLc7FXEO7oiPXkX6 From: Eric Blake To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com, qemu-stable@nongnu.org Message-ID: Subject: Re: [PATCH v2 1/9] nbd: Allow unmap and fua during write zeroes References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-2-git-send-email-eblake@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/17/2016 03:10 PM, Max Reitz wrote: > On 17.11.2016 21:13, Eric Blake wrote: >> Commit fa778fff wired up support to send the NBD_CMD_WRITE_ZEROES, >> but forgot to inform the block layer that FUA unmapping of zeroes is >> supported. Without BDRV_REQ_MAY_UNMAP listed as a supported flag, >> the block layer will always insist on the NBD layer passing >> NBD_CMD_FLAG_NO_HOLE, resulting in the server always allocating >> things even when it was desired to let the server punch holes. >> Similarly, failing to set BDRV_REQ_FUA means that the client may >> send unnecessary NBD_CMD_FLUSH when it could have instead used the >> NBD_CMD_FLAG_FUA bit. >> >> CC: qemu-stable@nongnu.org I guess this one is technically not for qemu-stable (as fa778fff is not part of 2.7); rather, I just got carried away with the CC lines distinguishing the first half of my series for 2.8 vs. the second for 2.9= =2E >> Signed-off-by: Eric Blake >> --- >> block/nbd-client.c | 4 ++++ >> 1 file changed, 4 insertions(+) >=20 > Reviewed-by: Max Reitz >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --b6QtW1CIFBpOg8x9WhLc7FXEO7oiPXkX6 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/ iQEcBAEBCAAGBQJYLh21AAoJEKeha0olJ0NqLpAIAI88KdNHJ60W7+ZMRunPHdYJ YshVTWlFfdAd1D1NmaoQVWiHDdTSPkwzpsuxnNN2eZLOoB7DKEw0XflgchVEA7uL jHOhblogiTDF1asZDS6/SwRgUQdBdEiPz9cusVqLKRP/6LBqq6Q8WZBgkxcBjaas kSBAE6oY+ftRLSHJOVPG/7X4JVCVVtBMxvNqC41IumKcnxjtgAIKdciDiQObAJPj rGCIQDBzcxIoZhLLoPoKg8yfRFGgx3AqnuaO8z3XnwCN/CO2Mhjo3pOeCL/qED0R JFM1Xl5vf2yucxNUJlxgj5Kd5ep5/BrTvJiruSWA+WGt6yArxnszx+YJublgVCc= =ebyJ -----END PGP SIGNATURE----- --b6QtW1CIFBpOg8x9WhLc7FXEO7oiPXkX6--