]> git.hungrycats.org Git - linux/commit
tracing: Fix comment in tracing_buffers_splice_read()
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2026 18:49:02 +0000 (14:49 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2026 20:19:29 +0000 (16:19 -0400)
commit5cbea500775dd1944995f23320af030b9b24b24b
tree1c685ebe6e28c9014238531cd3538881a51070ca
parentc843fd3c73c94cb90b01c6bfe8d83796e652864d
tracing: Fix comment in tracing_buffers_splice_read()

The comment about returning an error if the read fails on the first
iteration is slightly incorrect. It makes it sound like the only reason it
could fail on a later iteration is if the subbuf order changed. That is
incorrect, it could also fail if the length passed in was not a multiple
of the subbuf size. Fix the comment.

Link: https://lore.kernel.org/all/20260904143527.40e73d36@gandalf.local.home/
Link: https://patch.msgid.link/20260904144902.506862a1@gandalf.local.home
Fixes: dae8dda341d2 ("tracing: Fix subbuf resize races with trace_pipe_raw readers")
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c