From: Steven Rostedt <rostedt@goodmis.org>
To: Vincent Donnefort <vdonnefort@google.com>
Cc: David CARLIER <devnexen@gmail.com>,
mhiramat@kernel.org, linux-trace-kernel@vger.kernel.org,
mathieu.desnoyers@efficios.com, kernel-team@android.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] ring-buffer: Clean up resize_disabled checks
Date: Wed, 16 Sep 2026 09:42:40 -0400 [thread overview]
Message-ID: <20260916094240.5c9f2518@robin> (raw)
In-Reply-To: <aqjyi2RD4oSCAY7z@google.com>
On Tue, 15 Sep 2026 08:23:55 +0100
Vincent Donnefort <vdonnefort@google.com> wrote:
> > For a single CPU, this now happens before the nr_pages == cpu_buffer->nr_pages
> > early exit, so writing the same size to per_cpu/cpuN/buffer_size_kb on a
> > mapped or persistent instance CPU fails with EBUSY instead of succeeding.
> > Intended ?
>
> Actually no, I didn't see that it is also "fixing" this discrepancy between the
> per_cpu buffer_size_kb and the global one.
>
> It seems to me better to align the behaviour for both interface, but then it is
> touching something that is user interface...
>
> Steven, WDYS?
I don't think we should worry about it. If something is mapped, then we
shouldn't be touching that file. Even writing the same value should
error out. There's no need to do that.
Hopefully it doesn't break anything because if it does, then yeah, we
will need to do something different here.
Oh, and can you break this up into two patches. One that adds this and
and one that does the:
Additionally, remove the unnecessary cpumask_test_cpu in
ring_buffer_subbuf_order_set(). for_each_buffer_cpu() already
iterates over buffer->cpumask.
Hey, breaking up patches improves your commit count ;-)
-- Steve
prev parent reply other threads:[~2026-09-16 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 17:59 Vincent Donnefort
2026-09-14 19:09 ` David CARLIER
2026-09-15 7:23 ` Vincent Donnefort
2026-09-16 13:42 ` Steven Rostedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260916094240.5c9f2518@robin \
--to=rostedt@goodmis.org \
--cc=devnexen@gmail.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=vdonnefort@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®