Re: [PATCH 1/2] sched/membarrier: Use per-CPU mutexes for targeted commands
From: Aniket Gattani
Date: Fri Apr 10 2026 - 19:56:47 EST
On Fri, 10 Apr 2026 14:56:55 +0200, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> 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))
>
> ?
Thanks for the review.
Agreed. I will fix this in v2 and will wait a couple of business days for anyone else to respond.