]> Git Repo - linux.git/commitdiff
rcuscale: Remove redundant WARN_ON_ONCE() splat
authorUladzislau Rezki (Sony) <[email protected]>
Wed, 13 Nov 2024 11:00:09 +0000 (12:00 +0100)
committerFrederic Weisbecker <[email protected]>
Fri, 15 Nov 2024 21:24:41 +0000 (22:24 +0100)
There are two places where WARN_ON_ONCE() is called two times
in the error paths. One which is encapsulated into if() condition
and another one, which is unnecessary, is placed in the brackets.

Remove an extra WARN_ON_ONCE() splat which is in brackets.

Reviewed-by: Paul E. McKenney <[email protected]>
Reviewed-by: Neeraj Upadhyay <[email protected]>
Signed-off-by: Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
kernel/rcu/rcuscale.c

index d360fa44b234db3a2285da0466f76d55c903b3e5..0f3059b1b80d03ddb8884fa4352e9497f476eecf 100644 (file)
@@ -889,14 +889,12 @@ kfree_scale_init(void)
 
                if (WARN_ON_ONCE(jiffies_at_lazy_cb - jif_start < 2 * HZ)) {
                        pr_alert("ERROR: call_rcu() CBs are not being lazy as expected!\n");
-                       WARN_ON_ONCE(1);
                        firsterr = -1;
                        goto unwind;
                }
 
                if (WARN_ON_ONCE(jiffies_at_lazy_cb - jif_start > 3 * HZ)) {
                        pr_alert("ERROR: call_rcu() CBs are being too lazy!\n");
-                       WARN_ON_ONCE(1);
                        firsterr = -1;
                        goto unwind;
                }
This page took 0.056378 seconds and 4 git commands to generate.