OpenCloudOS-Kernel/drivers/nvme/host
Nicholas Bellinger ba36c21b0c nvme/host: Add missing blk_integrity tag_size + flags assignments
While doing recent bring-up of nvme/host with target-core T10-PI,
I noticed /sys/block/nvme*/integrity/device_is_integrity_capable
was false, and /sys/block/nvme*/integrity/tag_size contained
a bogus value.

AFAICT outside of blk_integrity_compare() for DM + MD these
are informational values, but go ahead and add the missing
assignments for nvme/host to match what SCSI does within
sd_dif_config_host() for consistency's sake.

Cc: Keith Busch <keith.busch@intel.com>
Cc: Jay Freyensee <james.p.freyensee@intel.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@grimberg.me>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-05-17 17:14:21 -06:00
..
Kconfig NVMe: small typo in section BLK_DEV_NVME_SCSI of host/Kconfig 2016-04-26 08:31:50 -06:00
Makefile nvme: split pci module out of core module 2016-02-10 14:22:38 -07:00
core.c nvme/host: Add missing blk_integrity tag_size + flags assignments 2016-05-17 17:14:21 -06:00
lightnvm.c lightnvm: rename nr_pages to nr_ppas on nvm_rq 2016-05-06 12:51:10 -06:00
nvme.h NVMe: Short-cut removal on surprise hot-unplug 2016-05-17 17:14:21 -06:00
pci.c NVMe: Add device ID's with stripe quirk 2016-05-17 17:14:21 -06:00
scsi.c nvme: move chardev and sysfs interface to common code 2015-12-01 10:59:40 -07:00