Received: from eggs.gnu.org ([2001:4830:134:3::10]:51617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7jtx-00017X-0B for qemu-devel@nongnu.org; Fri, 18 Nov 2016 09:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7jtw-0002co-7D for qemu-devel@nongnu.org; Fri, 18 Nov 2016 09:12:24 -0500 References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-2-git-send-email-eblake@redhat.com> From: Paolo Bonzini Message-ID: <58dabeb4-2304-119a-e7df-6d0deaeadef9@redhat.com> Date: Fri, 18 Nov 2016 15:12:09 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HaH1E78T2k0At2W5lonvuqxKvK662px3w" 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 , Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, qemu-stable@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HaH1E78T2k0At2W5lonvuqxKvK662px3w From: Paolo Bonzini To: Max Reitz , Eric Blake , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, kwolf@redhat.com, qemu-stable@nongnu.org Message-ID: <58dabeb4-2304-119a-e7df-6d0deaeadef9@redhat.com> 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=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 17/11/2016 22:10, 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 >> Signed-off-by: Eric Blake >> --- >> block/nbd-client.c | 4 ++++ >> 1 file changed, 4 insertions(+) >=20 > Reviewed-by: Max Reitz I'll take this one. Paolo --HaH1E78T2k0At2W5lonvuqxKvK662px3w 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 iQEcBAEBCAAGBQJYLww5AAoJEL/70l94x66DxLsH/2PHY7Fdhxt8oDHemIukjgUD PbEbMfaiLiHsTH5keIb4Ey78SgTI2LixJWbaKuOtQq5axuwgnOzx/Cjr6gR3WmSx pLBxQw0v+G+QL2ZI33nt9ShIYNQBYbe0e6BqyJdsSegIa0KLo1YvSNuTNbciTezo yGLL1jqpN5OB28/30a7CbEnYGR3mWG5MRVn17l9D+doNEP8mkleHnC++CgQ/zIng tVkpM39s3w14yN3EkSwD8QvC130evtbTvGU4Zcs2XGGa5U5IL44E+lidvOdBvKwp YbD7OdQe+nvAlUsRQJdeIBMEtR2MXl4lUUpQZSMEEUENVUwN9k9klL+Dpe5ZLQQ= =9VIW -----END PGP SIGNATURE----- --HaH1E78T2k0At2W5lonvuqxKvK662px3w--