]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm, slab: allow NUMA restricted allocations to use percpu sheaves
authorVlastimil Babka <vbabka@suse.cz>
Wed, 11 Jun 2025 08:01:58 +0000 (10:01 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 11 Jun 2025 14:04:12 +0000 (16:04 +0200)
commitf8c61ae9fa046687713f5e47183f384936914493
tree61060462c34bcefabda7d4ee0c370931b3567674
parenta93dbb41cc4ec2554e407afdb1f92473d4070ee2
mm, slab: allow NUMA restricted allocations to use percpu sheaves

Currently allocations asking for a specific node explicitly or via
mempolicy in strict_numa node bypass percpu sheaves. Since sheaves
contain mostly local objects, we can try allocating from them if the
local node happens to be the requested node or allowed by the mempolicy.
If we find the object from percpu sheaves is not from the expected node,
we skip the sheaves - this should be rare.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c