]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ring-buffer: Make ring_buffer_{un}map() simpler with guard(mutex)
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 27 May 2025 16:20:09 +0000 (12:20 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 29 May 2025 12:24:08 +0000 (08:24 -0400)
commit60bc720e10eac397b3adae975095df77bc368b88
tree8f00f26a733af832c1924dd232bb235b8e1d762b
parentb2e7c6ed26e90fab1e5e626071e54e3b9ec9cb5a
ring-buffer: Make ring_buffer_{un}map() simpler with guard(mutex)

Convert the taking of the buffer->mutex and the cpu_buffer->mapping_lock
over to guard(mutex) and simplify the ring_buffer_map() and
ring_buffer_unmap() functions.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Link: https://lore.kernel.org/20250527122009.267efb72@gandalf.local.home
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c