]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a9154fe5bac9229f64965eee12374eb9b0b4188
tree2e1e57bff5faf04adc89496064f491e834b9601f
parent9172b58f97c145f1d2e135fc5836933ba165ff46
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