summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2022-05-20 13:18:16 -0700
committerPaul E. McKenney <paulmck@kernel.org>2022-06-21 15:57:04 -0700
commit8c0666d320f2fff6bc7cf76422bfbe90c20f53cc (patch)
treed2ffa05f366cca7232ce9fcea847b6c377fe12e1 /kernel/rcu
parent5c92d7501699a5deb72a579f808500db5bb6f92a (diff)
downloadlinux-stable-8c0666d320f2fff6bc7cf76422bfbe90c20f53cc.tar.gz
linux-stable-8c0666d320f2fff6bc7cf76422bfbe90c20f53cc.tar.bz2
linux-stable-8c0666d320f2fff6bc7cf76422bfbe90c20f53cc.zip
rcutorture: Make failure indication note reader-batch overflow
The loop scanning the pipesummary[] array currently skips the last element, which means that the diagnostics ignore those rarest of situations, namely where some readers persist across more than ten grace periods, but all other readers avoid spanning a full grace period. This commit therefore adjusts the scan to include the last element of this array. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcutorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 62841e9cd268..7e7c3518ab06 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1869,7 +1869,7 @@ rcu_torture_stats_print(void)
batchsummary[i] += READ_ONCE(per_cpu(rcu_torture_batch, cpu)[i]);
}
}
- for (i = RCU_TORTURE_PIPE_LEN - 1; i >= 0; i--) {
+ for (i = RCU_TORTURE_PIPE_LEN; i >= 0; i--) {
if (pipesummary[i] != 0)
break;
}