linux/drivers/nvme/host
Christoph Hellwig ef799bd8ff nvme: set the PRACT bit when using Write Zeroes with T10 PI
[ Upstream commit aaeb7bb061 ]

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.

Fixes: 6e02318eae ("nvme: add support for the Write Zeroes command")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-07-28 14:35:41 +02:00
..
core.c nvme: set the PRACT bit when using Write Zeroes with T10 PI 2021-07-28 14:35:41 +02:00
fabrics.c nvme-fabrics: decode host pathing error for connect 2021-06-16 12:01:37 +02:00
fabrics.h nvme: fix deadlock in disconnect during scan_work and/or ana_work 2020-07-29 07:45:19 +02:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme-fc: clear q_live at beginning of association teardown 2021-05-26 12:06:49 +02:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme: return errors for hwmon init 2020-09-22 17:49:55 +02:00
Kconfig nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME 2021-06-16 12:01:38 +02:00
lightnvm.c nvme: support for multiple Command Sets Supported and Effects log pages 2020-07-08 16:16:20 +02:00
Makefile nvme: support for zoned namespaces 2020-07-08 16:16:20 +02:00
multipath.c nvmet: use new ana_log_size instead the old one 2021-05-26 12:06:57 +02:00
nvme.h nvme-multipath: fix double initialization of ANA state 2021-05-26 12:06:57 +02:00
pci.c nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING 2021-07-28 14:35:40 +02:00
rdma.c nvme-rdma: fix in-casule data send for chained sgls 2021-06-10 13:39:16 +02:00
tcp.c nvme-tcp: fix possible use-after-completion 2021-05-26 12:06:52 +02:00
trace.c nvme: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvme-trace: print result and status in hex format 2019-06-21 11:12:37 +02:00
zns.c nvme: remove the disk argument to nvme_update_zone_info 2020-10-07 07:56:17 +02:00