[PATCH V2 0/4] posix-timers: Reduce spinlock contention

From: Eric Dumazet
Date: Wed Feb 19 2025 - 08:01:19 EST


We had incidents involving gazillions of concurrent posix timers.

In this series, I am reducing hash_lock contention in posix_timer_add(),
and fix a possible race.

v2: Initialize timer->it_id and timer->it_signal to non zero values
v1: https://lore.kernel.org/lkml/20250214135911.2037402-1-edumazet@xxxxxxxxxx/

Eric Dumazet (4):
posix-timers: Make next_posix_timer_id an atomic_t
posix-timers: Initialise timer->it_id in posix_timer_add()
posix-timers: Initialise timer->it_signal in posix_timer_add()
posix-timers: Use RCU in posix_timer_add()

include/linux/sched/signal.h | 2 +-
kernel/time/posix-timers.c | 54 ++++++++++++++++++++++++++----------
2 files changed, 41 insertions(+), 15 deletions(-)

--
2.48.1.601.g30ceb7b040-goog