Searched refs:read_flavor (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/include/linux/ |
| H A D | srcutree.h | 319 void __srcu_check_read_flavor(struct srcu_struct *ssp, int read_flavor); 324 static inline void srcu_check_read_flavor_force(struct srcu_struct *ssp, int read_flavor) in srcu_check_read_flavor_force() argument 328 if (likely(READ_ONCE(sdp->srcu_reader_flavor) & read_flavor)) in srcu_check_read_flavor_force() 332 __srcu_check_read_flavor(ssp, read_flavor); in srcu_check_read_flavor_force() 336 static inline void srcu_check_read_flavor(struct srcu_struct *ssp, int read_flavor) in srcu_check_read_flavor() argument 339 __srcu_check_read_flavor(ssp, read_flavor); in srcu_check_read_flavor()
|
| H A D | srcutiny.h | 109 #define srcu_check_read_flavor(ssp, read_flavor) do { } while (0) argument 110 #define srcu_check_read_flavor_force(ssp, read_flavor) do { } while (0) argument
|
| /linux-6.15/kernel/rcu/ |
| H A D | srcutree.c | 724 void __srcu_check_read_flavor(struct srcu_struct *ssp, int read_flavor) in __srcu_check_read_flavor() argument 730 WARN_ON_ONCE((read_flavor != SRCU_READ_FLAVOR_NMI) && in_nmi()); in __srcu_check_read_flavor() 731 WARN_ON_ONCE(read_flavor & (read_flavor - 1)); in __srcu_check_read_flavor() 736 old_read_flavor = cmpxchg(&sdp->srcu_reader_flavor, 0, read_flavor); in __srcu_check_read_flavor() 740 …WARN_ONCE(old_read_flavor != read_flavor, "CPU %d old state %d new state %d\n", sdp->cpu, old_read… in __srcu_check_read_flavor()
|