All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] tracing: Do not clean up hiter in mmiotrace read function
@ 2026-09-10 20:24 Steven Rostedt
  2026-09-10 20:24 ` [PATCH v2 1/2] " Steven Rostedt
  2026-09-10 20:24 ` [PATCH v2 2/2] tracing: Invert the logic in mmio_read() to get rid of the goto Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Steven Rostedt @ 2026-09-10 20:24 UTC (permalink / raw)
  To: linux-kernel, linux-trace-kernel
  Cc: Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers, Andrew Morton


When the mmiotrace trace was first created, it allocated a descriptor in
its pipe_open() method. Since there was no pipe_close() method when it was
created (in May of 2008, and pipe_close() was added in December of 2009),
it cleaned up the allocated descriptors in the read.

Now that the clean up is in the pipe_close() method that now exists,
remove the clean up from the read as it is no longer needed.

Also simplify the code by inverting the early exit conditional into a
conditional to perform the logic and get rid of the goto.

Link: https://lore.kernel.org/all/20260715143604.14481-1-gaikwad.dcg@gmail.com/
Link: https://lore.kernel.org/all/20260721211143.36dbd559@gandalf.local.home/

Changse since v1: https://lore.kernel.org/linux-trace-kernel/20260721212010.76e9ed61@gandalf.local.home/

- Broke it up into two patches. Nothing else changed.

Steven Rostedt (2):
      tracing: Do not clean up hiter in mmiotrace read function
      tracing: Invert the logic in mmio_read() to get rid of the goto

----
 kernel/trace/trace_mmiotrace.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

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

end of thread, other threads:[~2026-09-10 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 20:24 [PATCH v2 0/2] tracing: Do not clean up hiter in mmiotrace read function Steven Rostedt
2026-09-10 20:24 ` [PATCH v2 1/2] " Steven Rostedt
2026-09-10 20:24 ` [PATCH v2 2/2] tracing: Invert the logic in mmio_read() to get rid of the goto Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.