[PATCH v2] nvme: fix write zeroes pi
Martin K. Petersen
martin.petersen at oracle.com
Thu Nov 11 05:30:29 PST 2021
Klaus,
> Write Zeroes sets PRACT when block integrity is enabled (as it
> should), but neglects to also set the reftag which is expected by
> reads. This causes protection errors on reads.
>
> Fix this by setting the reftag for type 1 and 2 (for type 3, reads
> will not check the reftag).
Looks good to me.
Reviewed-by: Martin K. Petersen <martin.petersen at oracle.com>
--
Martin K. Petersen Oracle Linux Engineering
More information about the Linux-nvme
mailing list