]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: allow NUMA restricted allocations to use percpu sheaves
authorVlastimil Babka <vbabka@suse.cz>
Wed, 3 Sep 2025 12:59:50 +0000 (14:59 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 29 Sep 2025 07:21:16 +0000 (09:21 +0200)
commit4ec1a08d20315d2d2a6f942ea563e5dadd988e98
treecb4644224a5ba176c86a51c0a4f01adc8f8ec67b
parent989b09b73978a0b3dbee9ef343ab108742b1cc9f
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>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c