timekeeping: Annotate ktime_get_boot_fast_ns() with data_race()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Apr 2022 09:19:35 +0000 (11:19 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2022 12:00:20 +0000 (14:00 +0200)
commiteff4849f928f2b90402907e06a6de1619cf16b1a
tree89d6e893ef94311faf785a7d86cf44c6e5d8cb1d
parent62c1256d544747b38e77ca9b5bfe3a26f9592576
timekeeping: Annotate ktime_get_boot_fast_ns() with data_race()

Accessing timekeeper::offset_boot in ktime_get_boot_fast_ns() is an
intended data race as the reader side cannot synchronize with a writer and
there is no space in struct tk_read_base of the NMI safe timekeeper.

Mark it so.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220415091920.956045162@linutronix.de
kernel/time/timekeeping.c