]> git.baikalelectronics.ru Git - kernel.git/commit
rcu/torture: Change order of warning and trace dump
authorAnna-Maria Behnsen <anna-maria@linutronix.de>
Mon, 11 Apr 2022 15:19:03 +0000 (17:19 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 21 Jun 2022 22:55:02 +0000 (15:55 -0700)
commitc253944a984b2ce2eefb2fc432fefdf74a3fa4b7
tree0328213c34709ec8df723cb771b23cccb27cbc4c
parent03a1c1c8978520c06abd87cf4b940bcee4bd3035
rcu/torture: Change order of warning and trace dump

Dumping a big ftrace buffer could lead to a RCU stall. So there is the
ftrace buffer and the stall information which needs to be printed. When
there is additionally a WARN_ON() which describes the reason for the ftrace
buffer dump and the WARN_ON() is executed _after_ ftrace buffer dump, the
information get lost in the middle of the RCU stall information.

Therefore print WARN_ON() message before dumping the ftrace buffer in
rcu_torture_writer().

[ paulmck: Add tracing_off() to avoid cruft from WARN(). ]

Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Reviewed-by: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c