nvme-pci: do not build a scatterlist to map metadata
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2019 15:19:18 +0000 (08:19 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit783b94bd9250478154904fa782d2cfc46336cdf6
tree9110a3fc21bf023b55d9284902e2a9e56cff9ea3
parentb15c592de37ed9d71499a3b8a750d1b235fcba3d
nvme-pci: do not build a scatterlist to map metadata

We always have exactly one segment, so we can simply call dma_map_bvec.

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