Re: [PATCH 1/2] mm/slab: restore the rcutree. prefix of the kvfree_rcu parameters

From: Vlastimil Babka (SUSE)

Date: Wed Nov 04 2026 - 03:22:04 EST


On 11/2/26 15:33, Harry Yoo wrote:
> I adjusted my feedback. End result:
>
> mm/slab: restore the rcutree. prefix of the kvfree_rcu parameters
>
> The move of kvfree_rcu() to mm/slab_common.c dropped the "rcutree."
> MODULE_PARAM_PREFIX, so rcu_min_cached_objs and
> rcu_delay_page_cache_fill_msec became slab_common.* and the documented
> rcutree.* names are silently ignored. Restore the prefix; the
> slab_common.* names, never documented, stop working.
>
> Fixes: bbe658d65802 ("mm/slab: Move kvfree_rcu() into SLAB")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
> Reviewed-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>
> Link: https://patch.msgid.link/20261028134647.3176080-1-zhanxusheng1024@xxxxxxxxx
> Signed-off-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>

Reviewed-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>

> ---
> mm/slab_common.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/mm/slab_common.c b/mm/slab_common.c
> index 01c64ef661e7..41dea01a8c1f 100644
> --- a/mm/slab_common.c
> +++ b/mm/slab_common.c
> @@ -1367,6 +1367,10 @@ void __init kvfree_rcu_init(void)
>
> #else /* CONFIG_KVFREE_RCU_BATCHED */
>
> +/* Keep the prefix inherited from RCU */
> +#undef MODULE_PARAM_PREFIX
> +#define MODULE_PARAM_PREFIX "rcutree."
> +
> /*
> * This rcu parameter is runtime-read-only. It reflects
> * a minimum allowed number of objects which can be cached