rcu-tasks: Apply READ_ONCE() and WRITE_ONCE() to fix data race

Now that rcutorture tests readers from interrupt handlers, KCSAN spotted
an additional data race.  This commit therefore fixes it by applying
READ_ONCE() and WRITE_ONCE().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
Paul E. McKenney 2026-07-12 10:50:08 -07:00
commit 647dd6e094