rcutorture: Remove extraneous rcu_torture_pipe_update_one() READ_ONCE()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Mar 2024 03:14:46 +0000 (19:14 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 16 Apr 2024 09:16:25 +0000 (11:16 +0200)
commit8d0f9a6639f5083453602375ce9d3b71ef93ac73
treec3b161ed6e4f8cf7753d5b4e172f4ba5f32d538b
parentc507e195016ccca18e375d14cfeb1186dac60b2c
rcutorture: Remove extraneous rcu_torture_pipe_update_one() READ_ONCE()

The rcu_torture_pipe_update_one() cannot run concurrently with any updates
of ->rtort_pipe_count, so this commit removes the extraneous READ_ONCE()
from the read from this field.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Closes: https://lore.kernel.org/lkml/CAHk-=wiX_zF5Mpt8kUm_LFQpYY-mshrXJPOe+wKNwiVhEUcU9g@mail.gmail.com/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c