OSDN Git Service

rcu: Fix CPU-offline trace in rcutree_dying_cpu
authorNeeraj Upadhyay <neeraju@codeaurora.org>
Mon, 11 Jan 2021 11:45:58 +0000 (17:15 +0530)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 8 Mar 2021 22:17:35 +0000 (14:17 -0800)
commit47fcbc8dd62f15dc75916225ebacdc3bca9c12b2
tree8faf31a66f8a773726bebb34ba83fc57fb7a3be6
parentd3ad5bbc4da70c25ad6b386e038e711d0755767b
rcu: Fix CPU-offline trace in rcutree_dying_cpu

The condition in the trace_rcu_grace_period() in rcutree_dying_cpu() is
backwards, so that it uses the string "cpuofl" when the offline CPU is
blocking the current grace period and "cpuofl-bgp" otherwise.  Given that
the "-bgp" stands for "blocking grace period", this is at best misleading.
This commit therefore switches these strings in order to correctly trace
whether the outgoing cpu blocks the current grace period.

Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c