rcutorture: Dump GP kthread state on insufficient cb-flood laundering
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 18 Feb 2024 17:11:08 +0000 (09:11 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 9 Apr 2024 13:10:13 +0000 (15:10 +0200)
commitf8039457eedc378fa7a186054ee3032b8a41eaee
tree21dcd8118a2338292fb1a918059f5ea47405cc00
parent0a0467af0a4d8b4e3832945d1cc287d1cb52573e
rcutorture: Dump GP kthread state on insufficient cb-flood laundering

If a callback flood prevents grace period from completing, rcutorture
does a WARN_ON().  Avoiding this WARN_ON() currently requires that at
least three grace periods elapse during an eight-second callback-flood
interval.  Unfortunately, the current debug information does not include
anything about the grace-period state.  This commit therefore adds a
call to cur_ops->gp_kthread_dbg(), if this function pointer is non-NULL.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c