]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerJens Axboe <axboe@fb.com>
Tue, 1 Dec 2015 17:59:39 +0000 (10:59 -0700)
commit0b7f1f26f95a51ab11d4dc0adee230212b3cd675
tree56645fcd07d1d0bf514ea002178ecfd1f3170794
parent4160982e7594481d6b7f90aa693638a37d20ea17
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c