rcu: Bring diagnostic read of rcu_state.gp_flags into alignment
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Mar 2024 23:06:19 +0000 (15:06 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Mon, 15 Apr 2024 14:28:44 +0000 (16:28 +0200)
commitc90b9e49782424623e0006abbcab98f835c1f1d8
tree2d37f07ca49db4eb1f141d6f686fb0099203a291
parent62bb24c4b022b9ba9cf2e4a72f6cd8c3086f0cf8
rcu: Bring diagnostic read of rcu_state.gp_flags into alignment

This commit adds READ_ONCE() to a lockless diagnostic read from
rcu_state.gp_flags to avoid giving the compiler any chance whatsoever
of confusing the diagnostic state printed.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/tree_stall.h