nvme/pci: Use req_op to determine DIF remapping
authorKeith Busch <keith.busch@intel.com>
Tue, 29 Aug 2017 21:46:02 +0000 (17:46 -0400)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 Aug 2017 12:59:33 +0000 (14:59 +0200)
commitb5d8af5b521bdb4167808979df37e9defabeb707
treeb8f233d167bcf5262d2c7a4fdad5a6fca51c0167
parent1cad65620fecfb24cdeefa5533628a4f293783e7
nvme/pci: Use req_op to determine DIF remapping

Only read and write commands need DIF remapping. Everything else uses
a passthrough integrity payload.

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