diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2026-08-18 10:51:42 -0700 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2026-10-01 17:18:24 -0700 |
| commit | 21345a8eff2bf1e12a5defdd12fcf364b29791a9 (patch) | |
| tree | a1f230d6361ac75d7568a585e13482678e2f5b2b /tools/perf/scripts/python | |
| parent | 835a10eeb028a932a0061ef141537f5d17fc9aac (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
