diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-06-21 15:24:56 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-08-20 20:38:45 +0200 |
commit | 7a6a41073c345ff5ef5e81317211481c0da3f7f3 (patch) | |
tree | 259691e1f4bd116d57bca9b8919a78822f32cb1a /kernel/rcutorture.c | |
parent | rcu: Remove unused variable from rcu_torture_writer() (diff) | |
download | linux-7a6a41073c345ff5ef5e81317211481c0da3f7f3.tar.xz linux-7a6a41073c345ff5ef5e81317211481c0da3f7f3.zip |
rcu: Make rcutorture emit online failures if verbose
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>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r-- | kernel/rcutorture.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 20ce3b6f9aa6..be63101c6175 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c @@ -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", |