diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2026-09-02 08:30:38 -0700 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2026-10-12 16:50:39 -0700 |
| commit | 494fa5fcb1de0a1d3b7f864db35877ad552f39ad (patch) | |
| tree | 7ffc65f138e2ac3d71084c2f96cf3ac72176172c /tools/perf/scripts/python | |
| parent | f8d95888093348be1235815946359f9cbc2f7012 (diff) | |
srcutree: Warn if Tiny SRCU readers are preempted
The fastpath of synchronize_srcu_atomic() should always be taken
because readers always disable preemption. Therefore, the fact that
synchronize_srcu_atomic() is running at all should mean that all readers
have ended.
But there are always bugs. And responding to a usage bug with a
too-short SRCU grace period, and thus possibly corrupting memory
is at best a sadistic response so such a bug. For this reason,
synchronize_srcu_atomic() explicitly waits for readers. Except that
it does so silently, possibly failing to flag this bug. This commit
therefore adds a splat if synchronize_srcu_atomic() fails to take the
early exit.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
