rcu: Start timing stall repetitions after warning complete
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 21 May 2021 21:23:03 +0000 (14:23 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 6 Aug 2021 20:41:48 +0000 (13:41 -0700)
commitb169246feb1d82dbee5f3f6a4ce57368644dce95
treef185c9357dddde6ea0fc4df99280fc27034e385f
parenta80be428fbc1f1f3bc9ed9245906dd60850887f5
rcu: Start timing stall repetitions after warning complete

Systems with low-bandwidth consoles can have very large printk()
latencies, and on such systems it makes no sense to have the next RCU CPU
stall warning message start output before the prior message completed.
This commit therefore sets the time of the next stall only after the
prints have completed.  While printing, the time of the next stall
message is set to ULONG_MAX/2 jiffies into the future.

Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_stall.h