nvme: move protection information check into nvme_setup_rw
authorChristoph Hellwig <hch@lst.de>
Mon, 12 Jun 2017 16:36:32 +0000 (18:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:30:30 +0000 (14:30 +0200)
commitebe6d874cdb27d47f506a43ea95f1c0ef03aa246
tree36feab607e4bf183332274bf74be57f7f662302f
parentb3b1b0b01d244461cec22be4e2b94b98c58ad8c5
nvme: move protection information check into nvme_setup_rw

It only applies to read/write commands, and this way non-PCIe drivers
get the check as well instead of having to duplicate it when adding
metadata support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c