]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5827292f62a4aafa4ccf9adbe3c8d4b5b955ba4
treeac556d402228f2c09a08d3cfb4dc2ad6c35f44f0
parent2a12ad375eed53e7c1260c046902265f1c4317fb
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