rcu: gp_max is protected by root rcu_node's lock
authorWei Yang <richard.weiyang@linux.alibaba.com>
Fri, 12 Jun 2020 02:07:52 +0000 (10:07 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 18:58:51 +0000 (11:58 -0700)
commit00943a609d7ad0f08e58bc9c214f38b0ba163c88
tree3686133ff2ef10dc72ee47a6fbd851fbdd09de54
parentc6dfd72b7a3b70a2054db0f73245ea2f762a8452
rcu: gp_max is protected by root rcu_node's lock

Because gp_max is protected by root rcu_node's lock, this commit moves
the gp_max definition to the region of the rcu_node structure containing
fields protected by this lock.

Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.h