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

rcu/nocb: Allow lockless use of rcu_segcblist_empty()



Currently, rcu_segcblist_empty() 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()
call, along with the WRITE_ONCE() calls when updating the callback list's
->head field.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 76c6927c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment