OSDN Git Service

rcu: Trace end of grace period before end of grace period
authorPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 15 Oct 2018 17:00:58 +0000 (10:00 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 17:03:59 +0000 (09:03 -0800)
commit0a89e5a402e957a97129423599a6ef6342da2764
treed8cffaa374dcd257b75615d75b95abd140ffb2f5
parent2320bda26df75c02f86c9fa42c3355ebcd16d8ed
rcu: Trace end of grace period before end of grace period

Currently, rcu_gp_cleanup() traces the end of the old grace period after
the old grace period has officially ended.  This might make intuitive
sense, but it also makes for confusing event-trace output because the
"end" trace displays not the old but instead the new grace-period number.
This commit therefore traces the end of an old grace period just before
that grace period officially ends.

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