OSDN Git Service

rcu: Record ->gp_state for both phases of grace-period initialization
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 15 May 2018 22:47:30 +0000 (15:47 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:39:09 +0000 (15:39 -0700)
commitfea3f222d3523dfdd0e86b11227d3cda20765102
tree2e1e57bff5faf04adc89496064f491e834b9601f
parent577389423187d8b51dfe6199297e579a3419b72b
rcu: Record ->gp_state for both phases of grace-period initialization

Grace-period initialization first processes any recent CPU-hotplug
operations, and then initializes state for the new grace period.  These
two phases of initialization are currently not distinguished in debug
prints, but the distinction is valuable in a number of debug situations.
This commit therefore introduces two new values for ->gp_state,
RCU_GP_ONOFF and RCU_GP_INIT, in order to make this distinction.

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