s390/pci_dma: improve map_sg
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 19 Aug 2016 07:12:09 +0000 (09:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Sep 2016 11:42:32 +0000 (13:42 +0200)
commitee877b81c6b92c190e7186c1ffd054804b426c02
tree9dea5cf1a3e6a6f01c23f524023e55490d91e816
parent8cb63b78791eef67ea95831c6ef5e6039c572b14
s390/pci_dma: improve map_sg

Our map_sg implementation mapped sg entries independently of each other.
For ease of use and possible performance improvements this patch changes
the implementation to try to map as many (likely physically non-contiguous)
sglist entries as possible into a contiguous DMA segment.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_dma.c