Re: [PATCH 3/3] mm/slab: document that local node allocations can use sheaves

From: Harry Yoo

Date: Thu Nov 26 2026 - 09:54:10 EST


On Wed, Nov 25, 2026 at 08:35:14PM +0100, Andreas Hindborg wrote:
> The documentation of the sheaf_capacity member of struct kmem_cache_args
> states that allocations via kmem_cache_alloc_node() with a node specified
> other than NUMA_NO_NODE bypass the sheaves.
>
> This has not been the case since commit 4ec1a08d2031 ("slab: allow NUMA
> restricted allocations to use percpu sheaves"). alloc_from_pcs() only
> bypasses the sheaves when the requested node is not the local node. A
> request for the local node is served from the sheaves if the object found
> there is from that node.
>
> Update the documentation to match.
>
> Fixes: 4ec1a08d2031 ("slab: allow NUMA restricted allocations to use percpu sheaves")
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> ---

Looks good to me,
Reviewed-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>

--
Cheers,
Harry / Hyeonggon