rcu: Add RCU-sched flavors of get-state and cond-sync
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 30 May 2015 17:11:24 +0000 (10:11 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 22 Jul 2015 22:26:58 +0000 (15:26 -0700)
commit24560056de61d86153cecb84d04e4237437f5888
tree4674113128e446afb740fcc1d45d7fbd64dcff1f
parentf765d1130700878c2275bc1ea09eed428f870a2a
rcu: Add RCU-sched flavors of get-state and cond-sync

The get_state_synchronize_rcu() and cond_synchronize_rcu() functions
allow polling for grace-period completion, with an actual wait for a
grace period occurring only when cond_synchronize_rcu() is called too
soon after the corresponding get_state_synchronize_rcu().  However,
these functions work only for vanilla RCU.  This commit adds the
get_state_synchronize_sched() and cond_synchronize_sched(), which provide
the same capability for RCU-sched.

Reported-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcutiny.h
include/linux/rcutree.h
kernel/rcu/rcutorture.c
kernel/rcu/tree.c