[PATCH] nvme: set the PRACT bit when using Write Zeroes with T10 PI

Keith Busch kbusch at kernel.org
Wed Jul 21 07:24:46 PDT 2021


On Wed, Jul 21, 2021 at 10:05:56AM +0200, Christoph Hellwig wrote:
> When using Write Zeroes on a namespace that has protection
> information enabled they behavior without the PRACT bit
> counter-intuitive and will generally lead to validation failures
> when reading the written blocks.  Fix this by always setting the
> PRACT bit that generates matching PI data on the fly.

Looks good.

Reviewed-by: Keith Busch <kbusch at kernel.org>



More information about the Linux-nvme mailing list