posix-timers: Annotate concurrent access to k_itimer:: It_signal
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Apr 2023 18:49:05 +0000 (20:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 18 Jun 2023 20:41:49 +0000 (22:41 +0200)
commit028cf5eaa12846c4e32104132ff70ca1cd6f5943
treebfad8e66b52efc78dc6800350c183fa169edf772
parentae88967d71f1b4ffb6e48043993d37a106da8109
posix-timers: Annotate concurrent access to k_itimer:: It_signal

k_itimer::it_signal is read lockless in the RCU protected hash lookup, but
it can be written concurrently in the timer_create() and timer_delete()
path. Annotate these places with READ_ONCE() and WRITE_ONCE()

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.143596887@linutronix.de
kernel/time/posix-timers.c