]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Fix tracepoint tracking RCU CPU kthread utilization
authorLai Jiangshan <jiangshanlai@gmail.com>
Tue, 15 Oct 2019 10:23:57 +0000 (10:23 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Jan 2020 18:33:31 +0000 (10:33 -0800)
commit2488a5e695564897a0f8ea42cd3af71647cd26d2
treedb67d218e4439daf2a3296577fb6266f15f5601a
parent822175e72995a9ff7eeef4f5cd3f945f2697b67d
rcu: Fix tracepoint tracking RCU CPU kthread utilization

In the call to trace_rcu_utilization() at the start of the loop in
rcu_cpu_kthread(), "rcu_wait" is incorrect, plus this trace event needs
to be hoisted above the loop to balance with either the "rcu_wait" or
"rcu_yield", depending on how the loop exits.  This commit therefore
makes these changes.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c