rcu/nocb: Allow lockless use of rcu_segcblist_restempty()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 13 May 2019 21:36:11 +0000 (14:36 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:35:49 +0000 (14:35 -0700)
commit76c6927c3ee443e756f2c0c9f992cb04b26c65f2
tree68851e7d552137042cfb37a18713d753dbaa3e31
parentca5c8258081178c60b27e3532d9ea95b6eaa7040
rcu/nocb: Allow lockless use of rcu_segcblist_restempty()

Currently, rcu_segcblist_restempty() assumes that the callback list
is not being changed by other CPUs, but upcoming changes will require
it to operate locklessly.  This commit therefore adds the needed
READ_ONCE() calls, along with the WRITE_ONCE() calls when updating
the callback list.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/rcu_segcblist.c
kernel/rcu/rcu_segcblist.h