]> git.baikalelectronics.ru Git - kernel.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)
commitd1be9f01bc1bfb5199a3f7abb075d0a8e04250ab
tree56645fcd07d1d0bf514ea002178ecfd1f3170794
parent9793b84df6f0694228e2ef54b74b0dd38f0cc4ba
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