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>
Thu, 24 Feb 2022 17:56:47 +0000 (09:56 -0800)
commit6a6520c89dfeb667ddc69c1f482d5ea9bbd30e8c
treeb8b0c27ad91e782441a9bff6da5c40cdbb33c60e
parent98c9ab7fdb6cdf83cfa525c70839daa7ee415dda
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