]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rcu: Make rcutorture emit online failures if verbose
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 21 Jun 2013 13:24:56 +0000 (06:24 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 20 Aug 2013 18:38:45 +0000 (11:38 -0700)
Although rcutorture counts CPU-hotplug online failures, it does
not explicitly record which CPUs were having trouble coming online.
This commit therefore emits a console message when online failure occurs.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutorture.c

index 20ce3b6f9aa64702812803c8f7455ad68da525e9..be63101c6175e5f10a121942a438694537094bd0 100644 (file)
@@ -1434,7 +1434,13 @@ rcu_torture_onoff(void *arg)
                                         torture_type, cpu);
                        starttime = jiffies;
                        n_online_attempts++;
-                       if (cpu_up(cpu) == 0) {
+                       ret = cpu_up(cpu);
+                       if (ret) {
+                               if (verbose)
+                                       pr_alert("%s" TORTURE_FLAG
+                                                "rcu_torture_onoff task: online %d failed: errno %d\n",
+                                                torture_type, cpu, ret);
+                       } else {
                                if (verbose)
                                        pr_alert("%s" TORTURE_FLAG
                                                 "rcu_torture_onoff task: onlined %d\n",