Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/rcu/
Drefscale.c113 static struct reader_task *reader_tasks; variable
809 struct reader_task *rt = &(reader_tasks[me]); in ref_scale_reader()
882 rt = &(reader_tasks[i]); in reset_readers()
905 rt = &(reader_tasks[i]); in process_durations()
969 smp_store_release(&reader_tasks[r].start_reader, 1); in main_func()
970 wake_up(&reader_tasks[r].wq); in main_func()
1045 if (reader_tasks) { in ref_scale_cleanup()
1048 reader_tasks[i].task); in ref_scale_cleanup()
1050 kfree(reader_tasks); in ref_scale_cleanup()
1131 reader_tasks = kcalloc(nreaders, sizeof(reader_tasks[0]), in ref_scale_init()
[all …]
Drcuscale.c109 static struct task_struct **reader_tasks; variable
878 if (reader_tasks) { in rcu_scale_cleanup()
881 reader_tasks[i]); in rcu_scale_cleanup()
882 kfree(reader_tasks); in rcu_scale_cleanup()
1004 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_scale_init()
1006 if (reader_tasks == NULL) { in rcu_scale_init()
1013 reader_tasks[i]); in rcu_scale_init()
1019 writer_tasks = kcalloc(nrealwriters, sizeof(reader_tasks[0]), in rcu_scale_init()
Drcutorture.c135 static struct task_struct **reader_tasks; variable
3341 if (reader_tasks) { in rcu_torture_cleanup()
3344 reader_tasks[i]); in rcu_torture_cleanup()
3345 kfree(reader_tasks); in rcu_torture_cleanup()
3346 reader_tasks = NULL; in rcu_torture_cleanup()
3795 reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), in rcu_torture_init()
3799 if (!reader_tasks || !rcu_torture_reader_mbchk) { in rcu_torture_init()
3807 reader_tasks[i]); in rcu_torture_init()
/Linux-v6.6/kernel/locking/
Dlocktorture.c61 static struct task_struct **reader_tasks; variable
1025 if (reader_tasks) { in lock_torture_cleanup()
1028 reader_tasks[i]); in lock_torture_cleanup()
1029 kfree(reader_tasks); in lock_torture_cleanup()
1030 reader_tasks = NULL; in lock_torture_cleanup()
1222 reader_tasks = kcalloc(cxt.nrealreaders_stress, in lock_torture_init()
1223 sizeof(reader_tasks[0]), in lock_torture_init()
1225 if (reader_tasks == NULL) { in lock_torture_init()
1259 reader_tasks[j]); in lock_torture_init()
/Linux-v6.6/Documentation/RCU/
Drcubarrier.rst103 19 if (reader_tasks != NULL) {
105 21 if (reader_tasks[i] != NULL) {
108 24 kthread_stop(reader_tasks[i]);
110 26 reader_tasks[i] = NULL;
112 28 kfree(reader_tasks);
113 29 reader_tasks = NULL;