Lines Matching refs:threads
41 static struct task_struct **threads; /* Lists of threads. */ variable
1131 if (WARN_ON(threads)) in test_init()
1143 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), GFP_KERNEL); in test_init()
1144 if (WARN_ON(!threads)) in test_init()
1147 threads[nthreads] = NULL; in test_init()
1149 if (torture_create_kthread(access_thread, NULL, threads[i])) in test_init()
1158 kfree(threads); in test_init()
1159 threads = NULL; in test_init()
1176 if (threads) { in test_exit()
1177 for (stop_thread = threads; *stop_thread; stop_thread++) in test_exit()
1180 kfree(threads); in test_exit()
1181 threads = NULL; in test_exit()