Re: [PATCH v2 3/7] irqchip/gic-v3-its: Avoid explicit cpumask allocation on stack

From: Marc Zyngier
Date: Wed Apr 17 2024 - 06:56:19 EST


On Tue, 16 Apr 2024 09:54:50 +0100,
Dawei Li <dawei.li@xxxxxxxxxxxx> wrote:
>
> In general it's preferable to avoid placing cpumasks on the stack, as
> for large values of NR_CPUS these can consume significant amounts of
> stack space and make stack overflows more likely.
>
> Remove cpumask var on stack and use cpumask_any_and() to address it.
>
> Signed-off-by: Dawei Li <dawei.li@xxxxxxxxxxxx>

Reviewed-by: Marc Zyngier <maz@xxxxxxxxxx>

M.

--
Without deviation from the norm, progress is not possible.