Re: [patch V2 02/17] posix-timers: Add cond_resched() to posix_timer_add() search loop

From: Frederic Weisbecker
Date: Wed Mar 05 2025 - 15:54:45 EST


Le Sun, Mar 02, 2025 at 08:36:46PM +0100, Thomas Gleixner a écrit :
> From: Eric Dumazet <edumazet@xxxxxxxxxx>
>
> With a large number of POSIX timers the search for a valid ID might cause a
> soft lockup on PREEMPT_NONE/VOLUNTARY kernels.
>
> Add cond_resched() to the loop to prevent that.
>
> [ tglx: Split out from Eric's series ]
>
> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Link: https://lore.kernel.org/all/20250214135911.2037402-2-edumazet@xxxxxxxxxx

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>