]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: use the block layer for userspace passthrough metadata
authorKeith Busch <keith.busch@intel.com>
Fri, 23 Oct 2015 15:47:28 +0000 (09:47 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:37 +0000 (13:40 -0700)
commit18c2bdbb6e84281f3da159b07bb66dd4fa6f6e42
treecca183dc3fba2c18788d492712549573d4a70a18
parent73dde2a1c19b79bfe9227c5df0c079aafb8eb930
nvme: use the block layer for userspace passthrough metadata

Use the integrity API to pass through metadata from userspace.  For PI
enabled devices this means that we now validate the reftag, which seems
like an unintentional ommission in the old code.

Thanks to Keith Busch for testing and fixes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[Skip metadata setup on admin commands]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 0b7f1f26f95a51ab11d4dc0adee230212b3cd675)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c