From: Boqun Feng <boqun.feng@gmail.com>
To: jens.korinth@tuta.io
Cc: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>,
FUJITA Tomonori <fujita.tomonori@gmail.com>,
Rust For Linux <rust-for-linux@vger.kernel.org>,
Ojeda <ojeda@kernel.org>, Alex Gaynor <alex.gaynor@gmail.com>,
Gary <gary@garyguo.net>, Bjorn3 Gh <bjorn3_gh@protonmail.com>,
Benno Lossin <benno.lossin@proton.me>,
A Hindborg <a.hindborg@kernel.org>,
Aliceryhl <aliceryhl@google.com>, Tmgross <tmgross@umich.edu>
Subject: Re: [PATCH v1] rust: Add pr_*_once macros
Date: Mon, 4 Nov 2024 14:20:31 -0800 [thread overview]
Message-ID: <ZylIr69GP-qymLyz@Boquns-Mac-mini.local> (raw)
In-Reply-To: <OAtDBYR--B-9@tuta.io>
On Mon, Nov 04, 2024 at 11:08:21PM +0100, jens.korinth@tuta.io wrote:
> Nov 4, 2024, 16:45 by miguel.ojeda.sandonis@gmail.com:
>
> > On Mon, Nov 4, 2024 at 3:08 AM FUJITA Tomonori
> > <fujita.tomonori@gmail.com> wrote:
> >
> >>
> >> The code to execute only once is very basic code like the kind found
> >> in textbooks? I think that his focus is on optimizing that code. Once
> >> the the basic code is merged, it's easier to send patches to optimize
> >> it.
> >>
> >
> > It doesn't matter that it is "very basic code". This was discussed 2
> > weeks ago in Zulip. Most importantly, it was a new contributor to the
> > kernel that was working on it (as far as I know).
> >
> > The issue is that sending code without any indication about the
> > discussion, without Cc'ing the author, and so on, is the sort of thing
> > that can annoy people. And if they are new contributors, it can drive
> > them away.
> >
> > We need to be careful about this.
> >
> I think you both make good points. Fujita, you're right - it is very
> basic code with little technical complexity, so it may not be worth
> overthinking. At the same time, I really appreciate you including me
I wouldn't call it (adding an extra load() before xchg()) "overthinking"
;-), because we are working in kernel, and we care about performance. We
actually use that pattern everywhere in the kernel. So thank you for
your work on this, the implementation and the benchmarking.
Regards,
Boqun
> in this conversation and acknowledging my contribution, Miguel;
> communities can be quite sensitive, and sometimes, attention to the
> small details really does make a difference. Perhaps we could simply
> add a "Suggested-by" or "Co-developed-by" acknowledgment and move
> forward?
>
> FWIW, my motivation to look into it was the TODO kernel/error.rs:123.
> Might be a good first place to use the new macros.
>
> Jens
next prev parent reply other threads:[~2024-11-04 22:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 3:05 [PATCH v1] rust: Add pr_*_once macros FUJITA Tomonori
2024-11-03 16:38 ` Dirk Behme
2024-11-04 1:48 ` FUJITA Tomonori
2024-11-03 16:41 ` Miguel Ojeda
2024-11-03 22:29 ` jens.korinth
2024-11-04 2:15 ` FUJITA Tomonori
2024-11-04 6:08 ` Boqun Feng
2024-11-04 2:08 ` FUJITA Tomonori
2024-11-04 15:44 ` Miguel Ojeda
2024-11-04 22:08 ` jens.korinth
2024-11-04 22:20 ` Boqun Feng [this message]
2024-11-04 23:33 ` FUJITA Tomonori
2024-11-05 20:20 ` Miguel Ojeda
2024-11-05 23:33 ` FUJITA Tomonori
2024-11-05 20:35 ` Miguel Ojeda
2024-11-05 23:31 ` FUJITA Tomonori
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=ZylIr69GP-qymLyz@Boquns-Mac-mini.local \
--to=boqun.feng@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=fujita.tomonori@gmail.com \
--cc=gary@garyguo.net \
--cc=jens.korinth@tuta.io \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/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;
as well as URLs for NNTP newsgroup(s).