rcu: Parameterize rcu_check_gp_start_stall()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 1 Oct 2018 22:42:44 +0000 (15:42 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 17:03:59 +0000 (09:03 -0800)
commit791416c47153b45f640d52baaf30995d9d396a08
tree535695e9d2f711625424e23435438b2dc5bcb364
parentb3c1d9ec7c59feadd22693f43145d8285bd35b04
rcu: Parameterize rcu_check_gp_start_stall()

In order to debug forward-progress stalls, it is necessary to check
for excessively delayed grace-period starts.  This is currently done
for RCU CPU stall warnings by rcu_check_gp_start_stall(), which checks
to see if the start of a requested grace period has been delayed by an
RCU CPU stall warning period.  Because rcutorture will need to check
for the time consumed by an RCU forward-progress delay, this commit
promotes gpssdelay from a local variable to a formal parameter.  It is
not necessary to export rcu_check_gp_start_stall() because rcutorture
will access it via a wrapper function.

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