PCI/P2PDMA: Store mapping method in an xarray
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 12 Aug 2019 17:30:45 +0000 (11:30 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Aug 2019 13:41:43 +0000 (08:41 -0500)
commit110203bee05f33637ccb44f046f14edaea94bb4c
tree209e4eb0627523e989decb7079ce21db53495367
parent142c242e6f12196f8064beb09198838611e029db
PCI/P2PDMA: Store mapping method in an xarray

When upstream_bridge_distance() is called, store the method required to map
the DMA transfers in an xarray so it can be looked up efficiently on the
hot path in pci_p2pdma_map_sg().

Link: https://lore.kernel.org/r/20190730163545.4915-12-logang@deltatee.com
Link: https://lore.kernel.org/r/20190812173048.9186-12-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/pci/p2pdma.c