Home
last modified time | relevance | path

Searched refs:reader_tasks (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/kernel/rcu/
Drcuperf.c97 static struct task_struct **reader_tasks; variable
510 if (reader_tasks) { in rcu_perf_cleanup()
513 reader_tasks[i]); in rcu_perf_cleanup()
514 kfree(reader_tasks); in rcu_perf_cleanup()
652 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_perf_init()
654 if (reader_tasks == NULL) { in rcu_perf_init()
661 reader_tasks[i]); in rcu_perf_init()
667 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_perf_init()
Drcutorture.c124 static struct task_struct **reader_tasks; variable
2185 if (reader_tasks) { in rcu_torture_cleanup()
2188 reader_tasks[i]); in rcu_torture_cleanup()
2189 kfree(reader_tasks); in rcu_torture_cleanup()
2427 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
2429 if (reader_tasks == NULL) { in rcu_torture_init()
2436 reader_tasks[i]); in rcu_torture_init()
/Linux-v5.4/kernel/locking/
Dlocktorture.c60 static struct task_struct **reader_tasks; variable
810 if (reader_tasks) { in lock_torture_cleanup()
813 reader_tasks[i]); in lock_torture_cleanup()
814 kfree(reader_tasks); in lock_torture_cleanup()
815 reader_tasks = NULL; in lock_torture_cleanup()
995 reader_tasks = kcalloc(cxt.nrealreaders_stress, in lock_torture_init()
996 sizeof(reader_tasks[0]), in lock_torture_init()
998 if (reader_tasks == NULL) { in lock_torture_init()
1031 reader_tasks[j]); in lock_torture_init()
/Linux-v5.4/Documentation/RCU/
Drcubarrier.txt119 19 if (reader_tasks != NULL) {
121 21 if (reader_tasks[i] != NULL) {
124 24 kthread_stop(reader_tasks[i]);
126 26 reader_tasks[i] = NULL;
128 28 kfree(reader_tasks);
129 29 reader_tasks = NULL;