diff options
author | 2025-03-14 09:07:13 -0700 | |
---|---|---|
committer | 2025-05-08 16:13:26 -0700 | |
commit | 78bf44de47b3cec72ee8ddc14161d5b3212f25e0 (patch) | |
tree | f33255e578260c722fbec02d12b8714303fd6c28 /scripts/lib/kdoc/kdoc_files.py | |
parent | drm/amd/pm: Avoid open-coded use of ratelimit_state structure's internals (diff) | |
download | linux-rng-78bf44de47b3cec72ee8ddc14161d5b3212f25e0.tar.xz linux-rng-78bf44de47b3cec72ee8ddc14161d5b3212f25e0.zip |
ratelimit: Convert the ->missed field to atomic_t
The ratelimit_state structure's ->missed field is sometimes incremented
locklessly, and it would be good to avoid lost counts. This is also
needed to count the number of misses due to trylock failure. Therefore,
convert the ratelimit_state structure's ->missed field to atomic_t.
Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/
Link: https://lore.kernel.org/all/20250423115409.3425-1-spasswolf@web.de/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: John Ogness <john.ogness@linutronix.de>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions