rcu: Introduce grace-period sequence numbers
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Apr 2018 18:52:09 +0000 (11:52 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 21:27:46 +0000 (14:27 -0700)
commitde30ad512a668b56e7ad7a5a7c379d7c5d138a94
treeb738dc4cef2074311f09b55da11f1a74a72acf72
parent609af1cdf040f8d3f3986755586f7833eaa96d2c
rcu: Introduce grace-period sequence numbers

This commit adds grace-period sequence numbers (->gp_seq) to the
rcu_state, rcu_node, and rcu_data structures, and updates them.
It also checks for consistency between rsp->gpnum and rsp->gp_seq.
These ->gp_seq counters will eventually replace the existing ->gpnum
and ->completed counters, allowing a single memory access to determine
whether or not a grace period is in progress and if so, which one.
This in turn will enable changes that will reduce ->lock contention on
the leaf rcu_node structures.

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