linux/drivers/nvme/host
Christoph Hellwig c81bfba998 nvme: only setup block integrity if supported by the driver
Currently only the PCIe driver supports metadata, so we should not claim
integrity support for the other drivers.  This prevents nasty crashes
with targets that advertise metadata support on fabrics.

Also use the opportunity to factor out some code into a separate helper
that isn't even compiled if CONFIG_BLK_DEV_INTEGRITY is disabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
2017-05-26 09:54:23 +03:00
..
core.c nvme: only setup block integrity if supported by the driver 2017-05-26 09:54:23 +03:00
fabrics.c nvme-fabrics: Allow ctrl loss timeout configuration 2017-04-04 09:48:23 -06:00
fabrics.h nvme-fabrics: Allow ctrl loss timeout configuration 2017-04-04 09:48:23 -06:00
fc.c nvme: replace is_flags field in nvme_ctrl_ops with a flags field 2017-05-26 09:54:16 +03:00
Kconfig nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
lightnvm.c nvme: lightnvm: fix memory leak 2017-05-10 07:39:43 -06:00
Makefile nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
nvme.h nvme: only setup block integrity if supported by the driver 2017-05-26 09:54:23 +03:00
pci.c nvme: only setup block integrity if supported by the driver 2017-05-26 09:54:23 +03:00
rdma.c nvme: replace is_flags field in nvme_ctrl_ops with a flags field 2017-05-26 09:54:16 +03:00
scsi.c nvme-scsi: remove nvme_trans_security_protocol 2017-04-27 08:39:32 +02:00