rcu: Produce last "CleanupMore" trace only if late-breaking request
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Mon, 14 May 2018 03:15:40 +0000 (20:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:38:53 +0000 (15:38 -0700)
commit5b55072f22ba2ed136b7a1b6c5beea9ace8415a7
treeb090d9ad59ccd60e72d5da8916144fb329d11955
parenta2165e416878b325747f871df4b236b49bf61486
rcu: Produce last "CleanupMore" trace only if late-breaking request

Currently Tree RCU's clean-up code emits a "CleanupMore" trace event in
response to late-arriving grace-period requests even if the grace period
was already requested. This makes "CleanupMore" show up an extra time (in
addition to once for each rcu_node structure that was previously marked
with the request), and for no good reason.  This commit therefore avoids
emitting this trace message unless the the only request for this next
grace period arrived during or after the cleanup scan of the rcu_node
structures.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c