]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Make rcu_gp_cleanup() write only once to ->gp_flags
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 22 Apr 2018 22:06:05 +0000 (15:06 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 21:25:17 +0000 (14:25 -0700)
commit18390aeae7010ee56b132dcfb663ba362a099d99
tree52282bb131a34abc51599d1aaa71a0da62084f9d
parent26d950a9451336a6b5abc1c8ca6c21df58e8d89f
rcu: Make rcu_gp_cleanup() write only once to ->gp_flags

At the end of rcu_gp_cleanup(), if another grace period is needed, but
not via rcu_accelerate_cbs(), the ->gp_flags field is written twice,
once when making the new grace-period request, and once when clearing
all other types of requests.  This commit therefore adds an else-clause
to avoid this double write.

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