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

Martin K. Petersen martin.petersen at oracle.com
Wed Jul 21 07:29:22 PDT 2021


Christoph,

> 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.

Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>

-- 
Martin K. Petersen	Oracle Linux Engineering



More information about the Linux-nvme mailing list