refperf: Convert reader_task structure's "start" field to int
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 26 May 2020 18:22:03 +0000 (11:22 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:00:45 +0000 (12:00 -0700)
commitaf2789db13b8dc38d16e969f8c11b9468be42d46
tree1c31ff0a61ac00f9d03a90af054aad76036f1557
parentb864f89ff61492f56b4e8c6713a5efec6540a0e2
refperf: Convert reader_task structure's "start" field to int

This commit converts the reader_task structure's "start" field to int
in order to demote a full barrier to an smp_load_acquire() and also to
simplify the code a bit.  While in the area, and to enlist the compiler's
help in ensuring that nothing was missed, the field's name was changed
to start_reader.

Also while in the area, change the main_func() store to use
smp_store_release() to further fortify against wait/wake races.

Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refperf.c