linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] rv: Tidy up with auto-cleanup
@ 2025-11-17  9:06 Nam Cao
  2025-11-17  9:06 ` [PATCH v2 1/2] rv: Convert to use lock guard Nam Cao
  2025-11-17  9:06 ` [PATCH v2 2/2] rv: Convert to use __free Nam Cao
  0 siblings, 2 replies; 16+ messages in thread
From: Nam Cao @ 2025-11-17  9:06 UTC (permalink / raw)
  To: Gabriele Monaco, Steven Rostedt
  Cc: Masami Hiramatsu, Mathieu Desnoyers, linux-trace-kernel,
	linux-kernel, Nam Cao

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@easystack.cn/

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          | 102 +++++++++++++---------------------
 kernel/trace/rv/rv.h          |   6 +-
 kernel/trace/rv/rv_reactors.c |  58 +++++++------------
 kernel/trace/trace.c          |   3 +-
 4 files changed, 66 insertions(+), 103 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-12-02  6:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17  9:06 [PATCH v2 0/2] rv: Tidy up with auto-cleanup Nam Cao
2025-11-17  9:06 ` [PATCH v2 1/2] rv: Convert to use lock guard Nam Cao
2025-11-25 19:57   ` Steven Rostedt
2025-11-26  7:27     ` Gabriele Monaco
2025-11-26  8:36       ` Nam Cao
2025-11-26  9:33         ` Gabriele Monaco
2025-11-26 15:42           ` Steven Rostedt
2025-11-26 14:51       ` Steven Rostedt
2025-11-26 15:22         ` Gabriele Monaco
2025-12-01 15:24           ` Steven Rostedt
2025-12-01 15:28             ` Gabriele Monaco
2025-12-02  1:38               ` Steven Rostedt
2025-12-02  1:51                 ` Steven Rostedt
2025-12-02  6:41                   ` Gabriele Monaco
2025-12-01 15:28             ` Nam Cao
2025-11-17  9:06 ` [PATCH v2 2/2] rv: Convert to use __free Nam Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).