summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-25 19:50:35 +0100
committerPaul E. McKenney <paulmck@kernel.org>2021-01-07 02:17:20 +0100
commit414c116e016584137118067f506125f6ace6128c (patch)
treeef9c2e2387d420804ba188d7603d7ce0c0cda6ce
parentrcutorture: Use hrtimers for reader and writer delays (diff)
downloadlinux-414c116e016584137118067f506125f6ace6128c.tar.xz
linux-414c116e016584137118067f506125f6ace6128c.zip
torture: Make refscale throttle high-rate printk()s
This commit adds a short delay for verbose_batched-throttled printk()s to further decrease console flooding. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r--kernel/rcu/refscale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/rcu/refscale.c b/kernel/rcu/refscale.c
index 3da246f2ccf5..02dd9767b559 100644
--- a/kernel/rcu/refscale.c
+++ b/kernel/rcu/refscale.c
@@ -52,8 +52,10 @@ static atomic_t verbose_batch_ctr;
do { \
if (verbose && \
(verbose_batched <= 0 || \
- !(atomic_inc_return(&verbose_batch_ctr) % verbose_batched))) \
+ !(atomic_inc_return(&verbose_batch_ctr) % verbose_batched))) { \
+ schedule_timeout_uninterruptible(1); \
pr_alert("%s" SCALE_FLAG s, scale_type, ## x); \
+ } \
} while (0)
#define VERBOSE_SCALEOUT_ERRSTRING(s, x...) \