rcu: Provide rcu_expedite_gp() and rcu_unexpedite_gp()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 18 Feb 2015 20:24:30 +0000 (12:24 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Feb 2015 20:02:59 +0000 (12:02 -0800)
commit0d39482c3db13aae1db143d340816108dd53e443
treedbcf5c785244bd29da2190d65a92fb1ca497a009
parentc517d838eb7d07bbe9507871fab3931deccff539
rcu: Provide rcu_expedite_gp() and rcu_unexpedite_gp()

Currently, expediting of normal synchronous grace-period primitives
(synchronize_rcu() and friends) is controlled by the rcu_expedited()
boot/sysfs parameter.  This works well, but does not handle nesting.
This commit therefore provides rcu_expedite_gp() to enable expediting
and rcu_unexpedite_gp() to cancel a prior rcu_expedite_gp(), both of
which support nesting.

Reported-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
kernel/rcu/update.c