summaryrefslogtreecommitdiff
path: root/tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2026-07-24 19:14:21 +0200
committerChristian Brauner <brauner@kernel.org>2026-07-31 10:09:12 +0200
commit91e27ed8a387c156f72175748de48db9ede74237 (patch)
treea5ba2b9d51bef378cd048a07330179ec8c6c5bfd /tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git
parent42c8ed5835921a7b2523517fd6caad1d79b69146 (diff)
lockref: tidy up dead count handling
1. put the dead val into a macro so that it can be used in other places 2. __lockref_is_dead(): - drop the __ suffix, this is not an internal routine - drop the spurious cast, the value is already a signed int - use READ_ONCE to prevent any compile shenanigans 3. provide lockref_is_dead_or_zero() Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://patch.msgid.link/20260724171422.429284-2-mjguzik@gmail.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/tests/scripts/lib/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions