]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 4 Sep 2025 17:45:55 +0000 (13:45 -0400)
commit3e19abfb58c5f50f4bf6ec82c6da79b1e320b9d7
treebd114ad5a6620f47810401b2aeb0f66d4d62a5f5
parent255b12a39f308e0a4d99ef026eeb8e8d66c71a55
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.

Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c