Home
last modified time | relevance | path

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

/linux-6.15/include/linux/
H A Dsrcutiny.h17 short srcu_lock_nesting[2]; /* srcu_read_lock() nesting depth. */ member
69 WRITE_ONCE(ssp->srcu_lock_nesting[idx], READ_ONCE(ssp->srcu_lock_nesting[idx]) + 1); in __srcu_read_lock()
121 data_race(READ_ONCE(ssp->srcu_lock_nesting[!idx])), in srcu_torture_stats_print()
122 data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])), in srcu_torture_stats_print()
/linux-6.15/kernel/rcu/
H A Dsrcutiny.c33 ssp->srcu_lock_nesting[0] = 0; in init_srcu_struct_fields()
34 ssp->srcu_lock_nesting[1] = 0; in init_srcu_struct_fields()
86 WARN_ON(ssp->srcu_lock_nesting[0] || ssp->srcu_lock_nesting[1]); in cleanup_srcu_struct()
106 newval = READ_ONCE(ssp->srcu_lock_nesting[idx]) - 1; in __srcu_read_unlock()
107 WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); in __srcu_read_unlock()
144 swait_event_exclusive(ssp->srcu_wq, !READ_ONCE(ssp->srcu_lock_nesting[idx])); in srcu_drive_gp()