rcu: Make quiescent-state reporting use ->gp_seq
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 27 Apr 2018 21:54:46 +0000 (14:54 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 21:27:48 +0000 (14:27 -0700)
commitc9a24e2d0c7d33b141167f5fa13f95cf6d35cb1e
treee6005bbbfc200f138be935deb9e26938c1ecb38a
parent78c5a67f1788f59d991c8e78d674ad3c8542f0ac
rcu: Make quiescent-state reporting use ->gp_seq

This commit switches the functions reporting quiescent states from
use of ->gpnum to ->gp_seq.  In either case, the point is to handle
races where a given grace period ends before a quiescent state can
be reported.  Failing to catch these races would result in too-short
grace periods, hence the checking.

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