]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/dma: Remove broken huge page handling
authorRobin Murphy <robin.murphy@arm.com>
Thu, 3 Sep 2020 11:34:04 +0000 (12:34 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Sep 2020 09:55:07 +0000 (11:55 +0200)
commit11aefd01c0e07ddcb2ca0c2bdef103381b3bbcff
tree02fd445b4e5f95fc4ef3a7c78f6b1942f28af34c
parente3abf09acbe0618013160244a51de8b288db04e2
iommu/dma: Remove broken huge page handling

The attempt to handle huge page allocations was originally added since
the comments around stripping __GFP_COMP in other implementations were
nonsensical, and we naively assumed that split_huge_page() could simply
be called equivalently to split_page(). It turns out that this doesn't
actually work correctly, so just get rid of it - there's little point
going to the effort of allocating huge pages if we're only going to
split them anyway.

Reported-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/e287dbe69aa0933abafd97c80631940fd188ddd1.1599132844.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c