iommu/s390: Push the gfp parameter to the kmem_cache_alloc()'s
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Jan 2023 20:36:02 +0000 (16:36 -0400)
committerJoerg Roedel <jroedel@suse.de>
Wed, 25 Jan 2023 10:52:06 +0000 (11:52 +0100)
commitd3b82825217aab0ed56e2426a0d07af2e2ebd7df
tree4396158d9912390d002fdc1c7f4d2100de2fba76
parent4951eb262384c24602b61b97d0bedcb54c3e4c9f
iommu/s390: Push the gfp parameter to the kmem_cache_alloc()'s

dma_alloc_cpu_table() and dma_alloc_page_table() are eventually called by
iommufd through s390_iommu_map_pages() and it should not be forced to
atomic. Thread the gfp parameter through the call chain starting from
s390_iommu_map_pages().

Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/9-v3-76b587fe28df+6e3-iommu_map_gfp_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/s390/include/asm/pci_dma.h
arch/s390/pci/pci_dma.c
drivers/iommu/s390-iommu.c