diff options
| author | 2026-08-18 10:51:42 -0700 | |
|---|---|---|
| committer | 2026-10-01 17:18:24 -0700 | |
| commit | 21345a8eff2bf1e12a5defdd12fcf364b29791a9 (patch) | |
| tree | a1f230d6361ac75d7568a585e13482678e2f5b2b /scripts/Makefile.thinlto | |
| parent | srcutiny: Make a Tiny SRCU grace period imply an RCU grace period (diff) | |
srcutree: Suppress srcu_advance_state() mutex_lock in atomic
The new SRCU_READ_FLAVOR_ATOMIC prohibits sleeping in both readers and
grace-period waits in order to permit waiting on an SRCU grace period
within an OOM notifier. This means that srcu_advance_state() cannot
acquire ->srcu_gp_mutex in this case, because mutex_lock() can sleep.
This commit therefore adds an is_atomic parameter to srcu_advance_state().
When this parameter is false, current behavior is maintained, in other
words, ->srcu_gp_mutex is acquired and released as before. But when this
is_atomic parameter is false, the caller is responsible for excluding
other callers.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
