Re: [PATCH 1/2] sched/membarrier: Use per-CPU mutexes for targeted commands

Peter Zijlstra
2026-04-10T12:57:01Z

On Thu, Apr 09, 2026 at 09:22:22PM +0000, Aniket Gattani wrote:
> + if (cpu_id >= 0 && (cpu_id >= nr_cpu_ids || !cpu_possible(cpu_id)))
> + return 0;

Did that want to be:

if ((unsigned)cpu_id >= nr_cpu_ids || !cpu_possible(cpu_id))

?