nvme-pci: optimize mapping single segment requests using SGLs
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Mar 2019 12:54:18 +0000 (05:54 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:58 +0000 (08:07 +0200)
commit297910571f08f1d7e398793df6e606ebb375a3f1
treeac556d402228f2c09a08d3cfb4dc2ad6c35f44f0
parentdff824b2aadb7808f50ceb0927acaec5ad750ce7
nvme-pci: optimize mapping single segment requests using SGLs

If the controller supports SGLs we can take another short cut for single
segment request, given that we can always map those without another
indirection structure, and thus don't need to create a scatterlist
structure.

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