[PATCH 0/2] rv: Tidy up with auto-cleanup

From: Nam Cao
Date: Sun Nov 16 2025 - 10:35:37 EST


This series tidies up rv code with __free and lock guard. This is motivated
by a bug:

https://lore.kernel.org/all/20250903065112.1878330-1-zhen.ni@xxxxxxxxxxxx/

which was caused by a missing mutex_unlock. This series makes such bug less
likely in the future, and also reduces some code lines.

Nam Cao (2):
rv: Convert to use lock guard
rv: Convert to use __free

kernel/trace/rv/rv.c | 104 ++++++++++++++--------------------
kernel/trace/rv/rv.h | 6 +-
kernel/trace/rv/rv_reactors.c | 58 +++++++------------
3 files changed, 66 insertions(+), 102 deletions(-)

--
2.51.0