nvme-pci: only call nvme_unmap_data for requests transferring data
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2019 15:52:21 +0000 (08:52 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commitb15c592de37ed9d71499a3b8a750d1b235fcba3d
tree7e68285aa007a151443e21b43bc00ac3e02732d9
parent7fe07d14f71fabef642a478626248a9121e95b7b
nvme-pci: only call nvme_unmap_data for requests transferring data

This mirrors how nvme_map_pci is called and will allow simplifying some
checks in nvme_unmap_pci later on.

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