[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230812170839.2e4f2f22@rorschach.local.home>
Date: Sat, 12 Aug 2023 17:08:39 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Zheng Yejian <zhengyejian1@...wei.com>
Cc: "Masami Hiramatsu (Google)" <mhiramat@...nel.org>,
<laijs@...fujitsu.com>, <linux-kernel@...r.kernel.org>,
<linux-trace-kernel@...r.kernel.org>
Subject: Re: [PATCH] tracing: Fix race when concurrently splice_read
trace_pipe
On Sat, 12 Aug 2023 10:22:43 +0800
Zheng Yejian <zhengyejian1@...wei.com> wrote:
> > And if it wasn't consumed? We just lost it?
>
> If 'iter->ent' was not consumed, trace_find_next_entry_inc() will find
> it again, will it?
No it will not, because it did the "inc". That means the next time it
is called, it will find the next item to read, thinking it already
"consumed" the last one.
-- Steve
Powered by blists - more mailing lists