Skip to content
Commit fcbcc0e7 authored by Zhaolong Zhang's avatar Zhaolong Zhang Committed by Paul E. McKenney
Browse files

rcu: Fix the (t=0 jiffies) false positive



It is possible that an over-long grace period will end while the RCU
CPU stall warning message is printing.  In this case, the estimate of
the offending grace period's duration can be erroneous due to refetching
of rcu_state.gp_start, which will now be the time of the newly started
grace period.  Computation of this duration clearly needs to use the
start time for the old over-long grace period, not the fresh new one.
This commit avoids such errors by causing both print_other_cpu_stall() and
print_cpu_stall() to reuse the value previously fetched by their caller.

Signed-off-by: default avatarZhaolong Zhang <zhangzl2013@126.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 1fca4d12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment