Home
last modified time | relevance | path

Searched refs:rnp (Results 1 – 11 of 11) sorted by relevance

/linux/kernel/rcu/
H A Dtree_exp.h14 static int rcu_print_task_exp_stall(struct rcu_node *rnp);
15 static void rcu_exp_print_detail_task_stall_rnp(struct rcu_node *rnp);
84 struct rcu_node *rnp; in sync_exp_reset_tree_hotplug() local
96 rcu_for_each_leaf_node(rnp) { in sync_exp_reset_tree_hotplug()
97 raw_spin_lock_irqsave_rcu_node(rnp, flags); in sync_exp_reset_tree_hotplug()
98 if (rnp->expmaskinit == rnp->expmaskinitnext) { in sync_exp_reset_tree_hotplug()
99 raw_spin_unlock_irqrestore_rcu_node(rnp, flags); in sync_exp_reset_tree_hotplug()
104 oldmask = rnp->expmaskinit; in sync_exp_reset_tree_hotplug()
105 rnp->expmaskinit = rnp->expmaskinitnext; in sync_exp_reset_tree_hotplug()
106 raw_spin_unlock_irqrestore_rcu_node(rnp, flags); in sync_exp_reset_tree_hotplug()
[all …]
H A Dtree_plugin.h116 static void rcu_report_exp_rnp(struct rcu_node *rnp, bool wake);
162 static void rcu_preempt_ctxt_queue(struct rcu_node *rnp, struct rcu_data *rdp) in rcu_preempt_ctxt_queue() argument
163 __releases(rnp->lock) /* But leaves rrupts disabled. */ in rcu_preempt_ctxt_queue()
165 int blkd_state = (rnp->gp_tasks ? RCU_GP_TASKS : 0) + in rcu_preempt_ctxt_queue()
166 (rnp->exp_tasks ? RCU_EXP_TASKS : 0) + in rcu_preempt_ctxt_queue()
167 (rnp->qsmask & rdp->grpmask ? RCU_GP_BLKD : 0) + in rcu_preempt_ctxt_queue()
168 (rnp->expmask & rdp->grpmask ? RCU_EXP_BLKD : 0); in rcu_preempt_ctxt_queue()
171 raw_lockdep_assert_held_rcu_node(rnp); in rcu_preempt_ctxt_queue()
172 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue()
173 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue()
[all …]
H A Dtree.c159 static void rcu_report_qs_rnp(unsigned long mask, struct rcu_node *rnp,
164 static void check_cb_ovld_locked(struct rcu_data *rdp, struct rcu_node *rnp);
803 static void rcu_gpnum_ovf(struct rcu_node *rnp, struct rcu_data *rdp) in rcu_gpnum_ovf() argument
805 raw_lockdep_assert_held_rcu_node(rnp); in rcu_gpnum_ovf()
807 rnp->gp_seq)) { in rcu_gpnum_ovf()
811 if (ULONG_CMP_LT(rdp->rcu_iw_gp_seq + ULONG_MAX / 4, rnp->gp_seq)) in rcu_gpnum_ovf()
812 rdp->rcu_iw_gp_seq = rnp->gp_seq + ULONG_MAX / 4; in rcu_gpnum_ovf()
860 struct rcu_node *rnp = rdp->mynode; in rcu_watching_snap_recheck() local
872 rcu_gpnum_ovf(rnp, rdp); in rcu_watching_snap_recheck()
898 __func__, rnp->grplo, rnp->grphi, rnp->level, in rcu_watching_snap_recheck()
[all …]
H A Dtree_stall.h252 struct rcu_node *rnp; in rcu_iw_handler() local
255 rnp = rdp->mynode; in rcu_iw_handler()
256 raw_spin_lock_rcu_node(rnp); in rcu_iw_handler()
258 rdp->rcu_iw_gp_seq = rnp->gp_seq; in rcu_iw_handler()
261 raw_spin_unlock_rcu_node(rnp); in rcu_iw_handler()
274 static void rcu_print_detail_task_stall_rnp(struct rcu_node *rnp) in rcu_print_detail_task_stall_rnp() argument
279 raw_spin_lock_irqsave_rcu_node(rnp, flags); in rcu_print_detail_task_stall_rnp()
280 if (!rcu_preempt_blocked_readers_cgp(rnp)) { in rcu_print_detail_task_stall_rnp()
281 raw_spin_unlock_irqrestore_rcu_node(rnp, flags); in rcu_print_detail_task_stall_rnp()
284 t = list_entry(rnp->gp_tasks->prev, in rcu_print_detail_task_stall_rnp()
[all …]
H A Drcu.h403 #define rcu_is_leaf_node(rnp) ((rnp)->level == rcu_num_lvls - 1) argument
406 #define rcu_is_last_leaf_node(rnp) ((rnp) == &rcu_state.node[rcu_num_nodes - 1]) argument
413 #define _rcu_for_each_node_breadth_first(sp, rnp) \ argument
414 for ((rnp) = &(sp)->node[0]; \
415 (rnp) < &(sp)->node[rcu_num_nodes]; (rnp)++)
416 #define rcu_for_each_node_breadth_first(rnp) \ argument
417 _rcu_for_each_node_breadth_first(&rcu_state, rnp)
418 #define srcu_for_each_node_breadth_first(ssp, rnp) \ argument
419 _rcu_for_each_node_breadth_first(ssp->srcu_sup, rnp)
427 #define rcu_for_each_leaf_node(rnp) \ argument
[all …]
H A Dtree.h146 #define leaf_node_cpu_bit(rnp, cpu) (BIT((cpu) - (rnp)->grplo)) argument
486 static int rcu_preempt_blocked_readers_cgp(struct rcu_node *rnp);
488 static bool rcu_preempt_has_tasks(struct rcu_node *rnp);
490 static int rcu_print_task_exp_stall(struct rcu_node *rnp);
491 static void rcu_preempt_check_blocked_tasks(struct rcu_node *rnp);
493 static void dump_blkd_tasks(struct rcu_node *rnp, int ncheck);
495 static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags);
496 static void rcu_preempt_boost_start_gp(struct rcu_node *rnp);
499 static void rcu_spawn_one_boost_kthread(struct rcu_node *rnp);
500 static bool rcu_preempt_has_tasks(struct rcu_node *rnp);
[all …]
H A Dtree_nocb.h204 static struct swait_queue_head *rcu_nocb_gp_get(struct rcu_node *rnp) in rcu_nocb_gp_get() argument
206 return &rnp->nocb_gp_wq[rcu_seq_ctr(rnp->gp_seq) & 0x1]; in rcu_nocb_gp_get()
209 static void rcu_init_one_nocb(struct rcu_node *rnp) in rcu_init_one_nocb() argument
211 init_swait_queue_head(&rnp->nocb_gp_wq[0]); in rcu_init_one_nocb()
212 init_swait_queue_head(&rnp->nocb_gp_wq[1]); in rcu_init_one_nocb()
225 static void rcu_nocb_exp_cleanup(struct rcu_node *rnp) in rcu_nocb_exp_cleanup() argument
243 rcu_nocb_cleanup_wake(&rnp->nocb_gp_wq[0]); in rcu_nocb_exp_cleanup()
244 rcu_nocb_cleanup_wake(&rnp->nocb_gp_wq[1]); in rcu_nocb_exp_cleanup()
724 struct rcu_node *rnp; in nocb_gp_wait() local
781 rnp = rdp->mynode; in nocb_gp_wait()
[all …]
/linux/Documentation/RCU/Design/Memory-Ordering/
H A DTree-RCU-Memory-Ordering.rst84 5 raw_spin_lock_rcu_node(rnp);
87 8 raw_spin_unlock_rcu_node(rnp);
92 13 raw_spin_lock_rcu_node(rnp);
95 16 raw_spin_unlock_rcu_node(rnp);
206 5 struct rcu_node *rnp;
232 31 rnp = rdp->mynode;
233 32 raw_spin_lock_rcu_node(rnp); /* irqs already disabled. */
234 33 needwake = rcu_accelerate_cbs(rnp, rdp);
235 34 raw_spin_unlock_rcu_node(rnp); /* irqs remain disabled. */
/linux/Documentation/RCU/Design/Requirements/
H A DRequirements.rst1981 rcu_for_each_leaf_node(rnp) {
1982 rnp->qsmaskinit = rnp->qsmaskinitnext;
1985 rnp->qsmaskinitnext |= mask;
1997 rnp->qsmask = rnp->qsmaskinit;
2030 // Must release rnp->lock to wake GP kthread
2039 rnp->qsmask = rnp->qsmaskinit
2040 mask = rnp->qsmask & ~rnp->qsmaskinitnext
2043 rnp->qsmaskinitnext &= ~mask // Finally clears bit
2052 the vulnerable window when rcu_report_qs_rnp() has released ``rnp->lock``::
2056 rcu_for_each_leaf_node(rnp) {
[all …]
/linux/Documentation/RCU/Design/Data-Structures/
H A DData-Structures.rst308 | 3. But rnp->qsmask isn't initialized yet (happens later in |
1139 6 #define rcu_for_each_node_breadth_first(rsp, rnp) \
1140 7 for ((rnp) = &(rsp)->node[0]; \
1141 8 (rnp) < &(rsp)->node[NUM_RCU_NODES]; (rnp)++)
1143 10 #define rcu_for_each_leaf_node(rsp, rnp) \
1144 11 for ((rnp) = (rsp)->level[NUM_RCU_LVLS - 1]; \
1145 12 (rnp) < &(rsp)->node[NUM_RCU_NODES]; (rnp)++)
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt6128 rdp and rnp's gp_seq before setting overflow flag.