Home
last modified time | relevance | path

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

/linux-5.19.10/kernel/rcu/
Drefscale.c111 static struct reader_task *reader_tasks; variable
541 struct reader_task *rt = &(reader_tasks[me]); in ref_scale_reader()
614 rt = &(reader_tasks[i]); in reset_readers()
637 rt = &(reader_tasks[i]); in process_durations()
701 smp_store_release(&reader_tasks[r].start_reader, 1); in main_func()
702 wake_up(&reader_tasks[r].wq); in main_func()
777 if (reader_tasks) { in ref_scale_cleanup()
780 reader_tasks[i].task); in ref_scale_cleanup()
782 kfree(reader_tasks); in ref_scale_cleanup()
859 reader_tasks = kcalloc(nreaders, sizeof(reader_tasks[0]), in ref_scale_init()
[all …]
Drcuscale.c106 static struct task_struct **reader_tasks; variable
550 if (reader_tasks) { in rcu_scale_cleanup()
553 reader_tasks[i]); in rcu_scale_cleanup()
554 kfree(reader_tasks); in rcu_scale_cleanup()
865 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_scale_init()
867 if (reader_tasks == NULL) { in rcu_scale_init()
874 reader_tasks[i]); in rcu_scale_init()
880 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_scale_init()
Drcutorture.c143 static struct task_struct **reader_tasks; variable
3001 if (reader_tasks) { in rcu_torture_cleanup()
3004 reader_tasks[i]); in rcu_torture_cleanup()
3005 kfree(reader_tasks); in rcu_torture_cleanup()
3006 reader_tasks = NULL; in rcu_torture_cleanup()
3265 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
3269 if (!reader_tasks || !rcu_torture_reader_mbchk) { in rcu_torture_init()
3277 reader_tasks[i]); in rcu_torture_init()
/linux-5.19.10/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-5.19.10/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;