PCI/P2PDMA: Introduce pci_p2pdma_unmap_sg()
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:43 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:41:26 +0000 (08:41 -0500)
commit7f73eac3a7137eabfb0c005c7ba55eb7994b9673
tree71b1700c9f04a1a35c9abdc59a4b7104dff03901
parent2b9f4bb2a4fb77da4862f9ddf5209de2bcdaa0c0
PCI/P2PDMA: Introduce pci_p2pdma_unmap_sg()

Add pci_p2pdma_unmap_sg() to the two places that call pci_p2pdma_map_sg().

This is a prep patch to introduce correct mappings for p2pdma transactions
that go through the root complex.

Link: https://lore.kernel.org/r/20190730163545.4915-10-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-10-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/infiniband/core/rw.c
drivers/nvme/host/pci.c
drivers/pci/p2pdma.c
include/linux/pci-p2pdma.h