diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-03-18 04:56:45 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-05-14 18:46:17 +0200 |
commit | d0d0606e2c13ad445a58b9d9547de617429cabf9 (patch) | |
tree | 3325245f0b569cb3d99811ad4426b657d48ab546 /kernel/rcu | |
parent | torture: Better summary diagnostics for build failures (diff) | |
download | linux-d0d0606e2c13ad445a58b9d9547de617429cabf9.tar.xz linux-d0d0606e2c13ad445a58b9d9547de617429cabf9.zip |
rcutorture: Check for rcu_torture_fqs creation errors
The return value from torture_create_kthread() is currently ignored
when creating the rcu_torture_fqs kthread. This commit therefore
captures the return value so that it can be tested for errors.
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 693a90fcee83..dfec2582899f 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -1577,7 +1577,8 @@ rcu_torture_init(void) fqs_duration = 0; if (fqs_duration) { /* Create the fqs thread */ - torture_create_kthread(rcu_torture_fqs, NULL, fqs_task); + firsterr = torture_create_kthread(rcu_torture_fqs, NULL, + fqs_task); if (firsterr) goto unwind; } |