rcutorture: Check for rcu_torture_fqs creation errors
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Mar 2014 03:56:45 +0000 (20:56 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:46:17 +0000 (09:46 -0700)
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>
kernel/rcu/rcutorture.c

index 693a90fcee83873b5107664b41f20a6c92b78512..dfec2582899f495ea10ebdd7956afa8cace505d3 100644 (file)
@@ -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;
        }
This page took 0.031381 seconds and 5 git commands to generate.