]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rcutorture: Print only one rtort_pipe_count splat
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 8 May 2025 23:45:02 +0000 (16:45 -0700)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 25 Jun 2025 03:09:01 +0000 (08:39 +0530)
The rcu_torture_writer() function scans the memory blocks after a stutter
(or forced idle) interval, complaining about any that have not passed
through ten grace periods since the start of the stutter interval.
But one splat suffices, so this commit therefore stops at the first splat.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
kernel/rcu/rcutorture.c

index 70ec0f21abc3b5329ccd49099573c60f14e0670f..d1e0d61d88152bd9d66db23cd65ec7408723718d 100644 (file)
@@ -1722,6 +1722,7 @@ rcu_torture_writer(void *arg)
                                                cur_ops->gp_kthread_dbg();
                                        WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count);
                                        rcu_ftrace_dump(DUMP_ALL);
+                                       break;
                                }
                if (stutter_waited)
                        sched_set_normal(current, oldnice);