Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/rcu/
Drefscale.c109 static struct reader_task *reader_tasks; variable
519 struct reader_task *rt = &(reader_tasks[me]); in ref_scale_reader()
592 rt = &(reader_tasks[i]); in reset_readers()
615 rt = &(reader_tasks[i]); in process_durations()
680 smp_store_release(&reader_tasks[r].start_reader, 1); in main_func()
681 wake_up(&reader_tasks[r].wq); in main_func()
759 if (reader_tasks) { in ref_scale_cleanup()
762 reader_tasks[i].task); in ref_scale_cleanup()
764 kfree(reader_tasks); in ref_scale_cleanup()
841 reader_tasks = kcalloc(nreaders, sizeof(reader_tasks[0]), in ref_scale_init()
[all …]
Drcuscale.c106 static struct task_struct **reader_tasks; variable
530 if (reader_tasks) { in rcu_scale_cleanup()
533 reader_tasks[i]); in rcu_scale_cleanup()
534 kfree(reader_tasks); in rcu_scale_cleanup()
845 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_scale_init()
847 if (reader_tasks == NULL) { in rcu_scale_init()
854 reader_tasks[i]); in rcu_scale_init()
860 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_scale_init()
Drcutorture.c137 static struct task_struct **reader_tasks; variable
2797 if (reader_tasks) { in rcu_torture_cleanup()
2800 reader_tasks[i]); in rcu_torture_cleanup()
2801 kfree(reader_tasks); in rcu_torture_cleanup()
2802 reader_tasks = NULL; in rcu_torture_cleanup()
3058 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
3062 if (!reader_tasks || !rcu_torture_reader_mbchk) { in rcu_torture_init()
3070 reader_tasks[i]); in rcu_torture_init()
/Linux-v5.15/kernel/locking/
Dlocktorture.c59 static struct task_struct **reader_tasks; variable
865 if (reader_tasks) { in lock_torture_cleanup()
868 reader_tasks[i]); in lock_torture_cleanup()
869 kfree(reader_tasks); in lock_torture_cleanup()
870 reader_tasks = NULL; in lock_torture_cleanup()
1057 reader_tasks = kcalloc(cxt.nrealreaders_stress, in lock_torture_init()
1058 sizeof(reader_tasks[0]), in lock_torture_init()
1060 if (reader_tasks == NULL) { in lock_torture_init()
1093 reader_tasks[j]); in lock_torture_init()
/Linux-v5.15/Documentation/RCU/
Drcubarrier.rst124 19 if (reader_tasks != NULL) {
126 21 if (reader_tasks[i] != NULL) {
129 24 kthread_stop(reader_tasks[i]);
131 26 reader_tasks[i] = NULL;
133 28 kfree(reader_tasks);
134 29 reader_tasks = NULL;