Home
last modified time | relevance | path

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

/linux-6.1.9/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
551 if (reader_tasks) { in rcu_scale_cleanup()
554 reader_tasks[i]); in rcu_scale_cleanup()
555 kfree(reader_tasks); in rcu_scale_cleanup()
866 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_scale_init()
868 if (reader_tasks == NULL) { in rcu_scale_init()
875 reader_tasks[i]); in rcu_scale_init()
881 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_scale_init()
Drcutorture.c133 static struct task_struct **reader_tasks; variable
3271 if (reader_tasks) { in rcu_torture_cleanup()
3274 reader_tasks[i]); in rcu_torture_cleanup()
3275 kfree(reader_tasks); in rcu_torture_cleanup()
3276 reader_tasks = NULL; in rcu_torture_cleanup()
3536 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
3540 if (!reader_tasks || !rcu_torture_reader_mbchk) { in rcu_torture_init()
3548 reader_tasks[i]); in rcu_torture_init()
/linux-6.1.9/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-6.1.9/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;