]> git.baikalelectronics.ru Git - kernel.git/commit
mm/dmapool.c: revert "make dma pool to use kmalloc_node"
authorChristian König <christian.koenig@amd.com>
Fri, 14 Jan 2022 22:06:54 +0000 (14:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:28 +0000 (16:30 +0200)
commit282f00288e7f224064d7ffd7030a2770d6840b1f
treef6038deffe0cbebb19a5a8a12d1022e4dbbff6a6
parent5561786296dcd4b6c11416e4eacd11f17aa3a2c3
mm/dmapool.c: revert "make dma pool to use kmalloc_node"

This reverts commit 58c69fd802419a ("dma: make dma pool to use
kmalloc_node").

While working myself into the dmapool code I've found this little odd
kmalloc_node().

What basically happens here is that we allocate the housekeeping
structure on the numa node where the device is attached to.  Since the
device is never doing DMA to or from that memory this doesn't seem to
make sense at all.

So while this doesn't seem to cause much harm it's probably cleaner to
revert the change for consistency.

Link: https://lkml.kernel.org/r/20211221110724.97664-1-christian.koenig@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: Yinghai Lu <yinghai.lu@sun.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/dmapool.c