Re: [PATCH v2 04/12] smp: Use on-stack cpumask in smp_call_function_many_cond

From: Muchun Song

Date: Tue Mar 10 2026 - 03:13:07 EST




> On Mar 2, 2026, at 15:52, Chuyi Zhou <zhouchuyi@xxxxxxxxxxxxx> wrote:
>
> This patch use on-stack cpumask to replace percpu cfd cpumask in
> smp_call_function_many_cond(). Note that when both CONFIG_CPUMASK_OFFSTACK
> and PREEMPT_RT are enabled, allocation during preempt-disabled section
> would break RT. Therefore, only do this when CONFIG_CPUMASK_OFFSTACK=n.
> This is a preparation for enabling preemption during csd_lock_wait() in
> smp_call_function_many_cond().
>
> Signed-off-by: Chuyi Zhou <zhouchuyi@xxxxxxxxxxxxx>

Reviewed-by: Muchun Song <muchun.song@xxxxxxxxx>

Thanks.