diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2021-11-10 12:19:06 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-11-23 19:22:41 +0300 |
commit | 00b33cf3da726757aef636365bb52e9536434e9a (patch) | |
tree | 07f2f8b1eb2b571e699e45771c3540d83cbeb6a7 /drivers/scsi | |
parent | 8e8aaf512a91ae44d40647a88b51326c7b0a70a8 (diff) | |
download | linux-00b33cf3da726757aef636365bb52e9536434e9a.tar.xz |
nvme: fix write zeroes pi
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).
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions