summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-01 00:39:52 +0100
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-02-23 18:03:20 +0100
commit14562d1cf12b434da2c69b5603a4149ac43f3b48 (patch)
treea9b8a947d5ad6d9bc92880434a08dedb9232850a /kernel/rcu
parentrcutorture: Clean up rcu_torture_init() error checking (diff)
downloadlinux-14562d1cf12b434da2c69b5603a4149ac43f3b48.tar.xz
linux-14562d1cf12b434da2c69b5603a4149ac43f3b48.zip
rcutorture: Announce task creation
A few "stealth-start rcutorture kthreads" have accumulated over the years, so this commit adds console-log announcements (but only if the torture tests are running verbose). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcutorture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 746c4278ea5e..6e9ba51b23b9 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -1120,6 +1120,7 @@ static int __init rcu_torture_stall_init(void)
if (stall_cpu <= 0)
return 0;
+ VERBOSE_TOROUT_STRING("Creating rcu_torture_stall task");
stall_task = kthread_run(rcu_torture_stall, NULL, "rcu_torture_stall");
if (IS_ERR(stall_task)) {
ret = PTR_ERR(stall_task);
@@ -1242,6 +1243,7 @@ static int rcu_torture_barrier_init(void)
return -ENOMEM;
for (i = 0; i < n_barrier_cbs; i++) {
init_waitqueue_head(&barrier_cbs_wq[i]);
+ VERBOSE_TOROUT_STRING("Creating rcu_torture_barrier_cbs task");
barrier_cbs_tasks[i] = kthread_run(rcu_torture_barrier_cbs,
(void *)(long)i,
"rcu_torture_barrier_cbs");
@@ -1253,6 +1255,7 @@ static int rcu_torture_barrier_init(void)
}
torture_shuffle_task_register(barrier_cbs_tasks[i]);
}
+ VERBOSE_TOROUT_STRING("Creating rcu_torture_barrier task");
barrier_task = kthread_run(rcu_torture_barrier, NULL,
"rcu_torture_barrier");
if (IS_ERR(barrier_task)) {
@@ -1606,6 +1609,7 @@ rcu_torture_init(void)
fqs_duration = 0;
if (fqs_duration) {
/* Create the fqs thread */
+ VERBOSE_TOROUT_STRING("Creating rcu_torture_fqs task");
fqs_task = kthread_run(rcu_torture_fqs, NULL,
"rcu_torture_fqs");
if (IS_ERR(fqs_task)) {