rcu: Check for jiffies going backwards
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 01:29:37 +0000 (17:29 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 12 Apr 2022 00:28:48 +0000 (17:28 -0700)
commitc708b08c65a0dfae127b9ee33b0fb73535a5e066
tree3dc0ab8b7a448ab78d1c27fb11933e757e6dbc56
parent90d2efe7bdbde5371b6122174af0718843f805c6
rcu: Check for jiffies going backwards

A report of a 12-jiffy normal RCU CPU stall warning raises interesting
questions about the nature of time on the offending system.  This commit
instruments rcu_sched_clock_irq(), which is RCU's hook into the
scheduling-clock interrupt, checking for the jiffies counter going
backwards.

Reported-by: Saravanan D <sarvanand@fb.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree.h