Home
last modified time | relevance | path

Searched refs:srcu_lock_nesting (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/include/linux/
Dsrcutiny.h17 short srcu_lock_nesting[2]; /* srcu_read_lock() nesting depth. */ member
63 WRITE_ONCE(ssp->srcu_lock_nesting[idx], ssp->srcu_lock_nesting[idx] + 1); in __srcu_read_lock()
86 READ_ONCE(ssp->srcu_lock_nesting[!idx]), in srcu_torture_stats_print()
87 READ_ONCE(ssp->srcu_lock_nesting[idx])); in srcu_torture_stats_print()
/Linux-v5.4/kernel/rcu/
Dsrcutiny.c29 ssp->srcu_lock_nesting[0] = 0; in init_srcu_struct_fields()
30 ssp->srcu_lock_nesting[1] = 0; in init_srcu_struct_fields()
81 WARN_ON(ssp->srcu_lock_nesting[0] || ssp->srcu_lock_nesting[1]); in cleanup_srcu_struct()
96 int newval = ssp->srcu_lock_nesting[idx] - 1; in __srcu_read_unlock()
98 WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); in __srcu_read_unlock()
130 swait_event_exclusive(ssp->srcu_wq, !READ_ONCE(ssp->srcu_lock_nesting[idx])); in srcu_drive_gp()