Skip to content
Commit 76c6927c authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent ca5c8258
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment