Przeglądaj źródła

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>
Paul E. McKenney 11 lat temu
rodzic
commit
d0d0606e2c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      kernel/rcu/rcutorture.c

+ 2 - 1
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;
 	}