Home
last modified time | relevance | path

Searched refs:rcu_state (Results 1 – 15 of 15) sorted by relevance

/linux-6.15/kernel/rcu/
H A Dtree.c83 static struct rcu_state rcu_state = { variable
1118 WRITE_ONCE(rcu_state.gp_wake_seq, READ_ONCE(rcu_state.gp_seq)); in rcu_gp_kthread_wake()
1985 WRITE_ONCE(rcu_state.n_force_qs, rcu_state.n_force_qs + 1); in rcu_gp_fqs()
2043 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_fqs_loop()
2066 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_fqs_loop()
2074 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_fqs_loop()
2085 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_fqs_loop()
2115 gp_duration = rcu_state.gp_end - rcu_state.gp_start; in rcu_gp_cleanup()
2229 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_kthread()
2243 trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, in rcu_gp_kthread()
[all …]
H A Dtree_stall.h148 WRITE_ONCE(rcu_state.gp_start, j); in record_gp_stall_check_time()
154 rcu_state.n_force_qs_gpstart = READ_ONCE(rcu_state.n_force_qs); in record_gp_stall_check_time()
179 rcu_state.name); in rcu_stall_kick_kthreads()
503 data_race(rcu_state.n_force_qs) - rcu_state.n_force_qs_gpstart, in print_cpu_stall_info()
520 rcu_state.name, j, in rcu_check_gp_kthread_starvation()
638 WRITE_ONCE(rcu_state.jiffies_stall, in print_other_cpu_stall()
693 WRITE_ONCE(rcu_state.jiffies_stall, in print_cpu_stall()
761 gs1 = READ_ONCE(rcu_state.gp_seq); in check_cpu_stall()
765 gps = READ_ONCE(rcu_state.gp_start); in check_cpu_stall()
767 gs2 = READ_ONCE(rcu_state.gp_seq); in check_cpu_stall()
[all …]
H A Dtree_exp.h22 rcu_seq_start(&rcu_state.expedited_sequence); in rcu_exp_gp_seq_start()
41 rcu_seq_end(&rcu_state.expedited_sequence); in rcu_exp_gp_seq_end()
55 s = rcu_seq_snap(&rcu_state.expedited_sequence); in rcu_exp_gp_seq_snap()
88 if (likely(ncpus == rcu_state.ncpus_snap)) in sync_exp_reset_tree_hotplug()
90 rcu_state.ncpus_snap = ncpus; in sync_exp_reset_tree_hotplug()
304 mutex_trylock(&rcu_state.exp_mutex)) in exp_funnel_lock()
336 mutex_lock(&rcu_state.exp_mutex); in exp_funnel_lock()
339 mutex_unlock(&rcu_state.exp_mutex); in exp_funnel_lock()
692 mutex_lock(&rcu_state.exp_wake_mutex); in rcu_exp_wait_wake()
708 mutex_unlock(&rcu_state.exp_wake_mutex); in rcu_exp_wait_wake()
[all …]
H A Dtree_nocb.h68 rcu_state.nocb_is_setup = true; in rcu_nocb_setup()
1122 mutex_lock(&rcu_state.nocb_mutex); in rcu_nocb_cpu_deoffload()
1133 mutex_unlock(&rcu_state.nocb_mutex); in rcu_nocb_cpu_deoffload()
1191 mutex_lock(&rcu_state.nocb_mutex); in rcu_nocb_cpu_offload()
1202 mutex_unlock(&rcu_state.nocb_mutex); in rcu_nocb_cpu_offload()
1230 mutex_unlock(&rcu_state.nocb_mutex); in lazy_rcu_shrink_count()
1289 mutex_unlock(&rcu_state.nocb_mutex); in lazy_rcu_shrink_scan()
1320 rcu_state.nocb_is_setup = true; in rcu_init_nohz()
1323 if (!rcu_state.nocb_is_setup) in rcu_init_nohz()
1437 mutex_lock(&rcu_state.nocb_mutex); in rcu_spawn_cpu_nocb_kthread()
[all …]
H A Drcu.h379 #define rcu_first_leaf_node() (rcu_state.level[rcu_num_lvls - 1])
385 #define rcu_is_last_leaf_node(rnp) ((rnp) == &rcu_state.node[rcu_num_nodes - 1])
396 _rcu_for_each_node_breadth_first(&rcu_state, rnp)
408 (rnp) < &rcu_state.node[rcu_num_nodes]; (rnp)++)
H A Dtree_plugin.h28 !(lockdep_is_held(&rcu_state.barrier_mutex) || in rcu_rdp_is_offloaded()
31 lockdep_is_held(&rcu_state.nocb_mutex) || in rcu_rdp_is_offloaded()
349 trace_rcu_preempt_task(rcu_state.name, in rcu_note_context_switch()
417 if (IS_ENABLED(CONFIG_RCU_STRICT_GRACE_PERIOD) && rcu_state.gp_kthread) in __rcu_read_lock()
756 time_after(jiffies, rcu_state.gp_start + HZ)) in rcu_flavor_sched_clock_irq()
836 if (irqs_disabled() || in_atomic_preempt_off() || !rcu_state.gp_kthread) in rcu_read_unlock_strict()
1189 (!time_after(rnp->boost_time, jiffies) || rcu_state.cbovld || in rcu_initiate_boost()
1272 time_before(jiffies, READ_ONCE(rcu_state.gp_start) + HZ))) in rcu_nohz_full_cpu()
H A Dtree.h340 struct rcu_state { struct
/linux-6.15/include/linux/
H A Dstackdepot.h73 unsigned long rcu_state; /* RCU cookie */ member
/linux-6.15/Documentation/RCU/Design/Data-Structures/
H A DData-Structures.rst27 This diagram shows an enclosing ``rcu_state`` structure containing a tree
154 #. ``rcu_state``: This structure forms the interconnection between the
189 following sections give more details on the ``rcu_state``, ``rcu_node``
192 The ``rcu_state`` Structure
195 The ``rcu_state`` structure is the base structure that represents the
202 A few of the ``rcu_state`` structure's fields are discussed, singly and
209 This portion of the ``rcu_state`` structure is declared as follows:
268 This portion of the ``rcu_state`` structure is declared as follows:
292 This portion of the ``rcu_state`` structure is declared as follows:
836 in the ``rcu_state`` and ``rcu_node`` structures. The
[all …]
/linux-6.15/net/sched/
H A Dsch_generic.c1584 cond_synchronize_rcu(miniq->rcu_state); in mini_qdisc_pair_swap()
1585 else if (!poll_state_synchronize_rcu(miniq->rcu_state)) in mini_qdisc_pair_swap()
1597 miniq_old->rcu_state = start_poll_synchronize_rcu(); in mini_qdisc_pair_swap()
1616 miniqp->miniq1.rcu_state = get_state_synchronize_rcu(); in mini_qdisc_pair_init()
1617 miniqp->miniq2.rcu_state = miniqp->miniq1.rcu_state; in mini_qdisc_pair_init()
/linux-6.15/lib/
H A Dstackdepot.c360 if (!poll_state_synchronize_rcu(stack->rcu_state)) in depot_pop_free()
494 stack->rcu_state = get_state_synchronize_rcu(); in depot_free_stack()
/linux-6.15/Documentation/RCU/Design/Expedited-Grace-Periods/
H A DExpedited-Grace-Periods.rst150 ``rcu_state`` structure's ``->ncpus`` field. The ``rcu_state``
160 ``rcu_state`` structure's ``->ncpus`` and ``->ncpus_snap`` fields are
259 ``->expedited_sequence`` in the ``rcu_state`` structure. This counter
309 respectively. The current value of the ``rcu_state`` structure's
351 Task A now acquires the ``rcu_state`` structure's ``->exp_mutex`` and
/linux-6.15/Documentation/RCU/Design/Memory-Ordering/
H A DTree-RCU-Memory-Ordering.rst341 advance the ``rcu_state`` structure's ``->gp_seq`` grace-period-number
370 to the newly advanced value from the ``rcu_state`` structure, as shown
379 ``rcu_state`` structure's ``->gp_seq`` field) before setting each leaf
567 ``rcu_state`` structure's ``->gp_seq`` field. The ordering effects are
586 | once the ``rcu_state`` structure's ``->gp_seq`` field has been |
/linux-6.15/include/net/
H A Dsch_generic.h1344 unsigned long rcu_state; member
/linux-6.15/Documentation/RCU/
H A Dstallwarn.rst248 possible for an rcu_state stall to be caused by both CPUs *and* tasks,