Received: from eggs.gnu.org ([2001:4830:134:3::10]:51303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Tx9-0001Ua-Cb for qemu-devel@nongnu.org; Thu, 17 Nov 2016 16:10:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Tx7-0008SU-OK for qemu-devel@nongnu.org; Thu, 17 Nov 2016 16:10:39 -0500 References: <1479413642-22463-1-git-send-email-eblake@redhat.com> <1479413642-22463-2-git-send-email-eblake@redhat.com> From: Max Reitz Message-ID: Date: Thu, 17 Nov 2016 22:10:26 +0100 MIME-Version: 1.0 In-Reply-To: <1479413642-22463-2-git-send-email-eblake@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="N5Vvsk5fbOt1u19RWP92RvbaqttgqtdNT" 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: Eric Blake , 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) --N5Vvsk5fbOt1u19RWP92RvbaqttgqtdNT From: Max Reitz To: Eric Blake , 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: <1479413642-22463-2-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable 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. >=20 > CC: qemu-stable@nongnu.org > Signed-off-by: Eric Blake > --- > block/nbd-client.c | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Max Reitz --N5Vvsk5fbOt1u19RWP92RvbaqttgqtdNT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJYLhzCEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQLGW B/oDmnx4hXNaOxr5wOTtOQD7aPmFO6PIcCdnBN3hmHBNPRGfu6vCR7Ybm4dzlG38 1zgok3YSgIwaT6u9T0x3Rb9V9X+AqYOTJW510W3/CAkiyhjz7IwquhQ2qZVXvndk yrwLrU8cpQUIV+yBPY1iB8rJn1xyjqghbWcbB/v5Lf4cyAcsY1Z34D4TgG3TedMS Scu0vhXSCo4JGArW4PbY4HpdnVaLuEWcNkmyqsehUkEu+muZhcB5byAlEMSiW90z wo0nsojQqPs9y5U0YEXCz4NScXYUaj7fdaz3PmVpqRFfknZ+pfD55grDfdc48qTE oYwpBOaZp43He6O/Ysy9eF3Z =KXrU -----END PGP SIGNATURE----- --N5Vvsk5fbOt1u19RWP92RvbaqttgqtdNT--