summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/fabrics.h
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2018-07-17 00:38:14 +0300
committerChristoph Hellwig <hch@lst.de>2018-07-24 14:44:09 +0300
commitd082dc1562a2ff0947b214796f12faaa87e816a9 (patch)
treeaba62b040834140884f42e0aed2ec08580fdc834 /drivers/nvme/host/fabrics.h
parent8f3ea35929a0806ad1397db99a89ffee0140822a (diff)
downloadlinux-d082dc1562a2ff0947b214796f12faaa87e816a9.tar.xz
nvmet-fc: fix target sgl list on large transfers
The existing code to carve up the sg list expected an sg element-per-page which can be very incorrect with iommu's remapping multiple memory pages to fewer bus addresses. To hit this error required a large io payload (greater than 256k) and a system that maps on a per-page basis. It's possible that large ios could get by fine if the system condensed the sgl list into the first 64 elements. This patch corrects the sg list handling by specifically walking the sg list element by element and attempting to divide the transfer up on a per-sg element boundary. While doing so, it still tries to keep sequences under 256k, but will exceed that rule if a single sg element is larger than 256k. Fixes: 48fa362b6c3f ("nvmet-fc: simplify sg list handling") Cc: <stable@vger.kernel.org> # 4.14 Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/fabrics.h')
0 files changed, 0 insertions, 0 deletions