diff options
author | 2025-05-05 17:21:16 -0400 | |
---|---|---|
committer | 2025-05-09 15:19:10 -0400 | |
commit | c4a80c06154084d52851fe495d40b0e4da032f47 (patch) | |
tree | 8e4744ae9941938d99836db0df4057ac93f83e6a /scripts/lib/kdoc/kdoc_files.py | |
parent | tracing: Convert the per CPU "disabled" counter to local from atomic (diff) | |
download | linux-rng-c4a80c06154084d52851fe495d40b0e4da032f47.tar.xz linux-rng-c4a80c06154084d52851fe495d40b0e4da032f47.zip |
tracing: Use atomic_inc_return() for updating "disabled" counter in irqsoff tracer
The irqsoff tracer uses the per CPU "disabled" field to prevent corruption
of the accounting when it starts to trace interrupts disabled, but there's
a slight race that could happen if for some reason it was called twice.
Use atomic_inc_return() instead.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250505212236.567884756@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions