Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/rcu/
Drcuperf.c104 static struct task_struct **reader_tasks; variable
565 if (reader_tasks) { in rcu_perf_cleanup()
568 reader_tasks[i]); in rcu_perf_cleanup()
569 kfree(reader_tasks); in rcu_perf_cleanup()
706 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_perf_init()
708 if (reader_tasks == NULL) { in rcu_perf_init()
715 reader_tasks[i]); in rcu_perf_init()
721 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_perf_init()
Drcutorture.c134 static struct task_struct **reader_tasks; variable
1834 if (reader_tasks) { in rcu_torture_cleanup()
1837 reader_tasks[i]); in rcu_torture_cleanup()
1838 kfree(reader_tasks); in rcu_torture_cleanup()
2039 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
2041 if (reader_tasks == NULL) { in rcu_torture_init()
2048 reader_tasks[i]); in rcu_torture_init()
/Linux-v4.19/kernel/locking/
Dlocktorture.c73 static struct task_struct **reader_tasks; variable
823 if (reader_tasks) { in lock_torture_cleanup()
826 reader_tasks[i]); in lock_torture_cleanup()
827 kfree(reader_tasks); in lock_torture_cleanup()
828 reader_tasks = NULL; in lock_torture_cleanup()
1006 reader_tasks = kcalloc(cxt.nrealreaders_stress, in lock_torture_init()
1007 sizeof(reader_tasks[0]), in lock_torture_init()
1009 if (reader_tasks == NULL) { in lock_torture_init()
1042 reader_tasks[j]); in lock_torture_init()
/Linux-v4.19/Documentation/RCU/
Drcubarrier.txt120 19 if (reader_tasks != NULL) {
122 21 if (reader_tasks[i] != NULL) {
125 24 kthread_stop(reader_tasks[i]);
127 26 reader_tasks[i] = NULL;
129 28 kfree(reader_tasks);
130 29 reader_tasks = NULL;