]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: The rcu_gp_cleanup() function does not need cpu_needs_another_gp()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Apr 2018 23:16:45 +0000 (16:16 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 15 May 2018 17:30:54 +0000 (10:30 -0700)
commit934a9e39e1e519e8da0b5117bf7970384d4be0c4
treeb68ccb760db3be0eb57c63f4826675ff7f33ca7b
parent9931a9282a31e5bfeee2b3346a94664d4bd9a62b
rcu: The rcu_gp_cleanup() function does not need cpu_needs_another_gp()

All of the cpu_needs_another_gp() function's checks (except for
newly arrived callbacks) have been subsumed into the rcu_gp_cleanup()
function's scan of the rcu_node tree.  This commit therefore drops the
call to cpu_needs_another_gp().  The check for newly arrived callbacks
is supplied by rcu_accelerate_cbs().  Any needed advancing (as in the
earlier rcu_advance_cbs() call) will be supplied when the corresponding
CPU becomes aware of the end of the now-completed grace period.

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