The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Tran Van Tien <7enlab@gmail.com>
To: ojeda@kernel.org
Cc: a.hindborg@kernel.org, trev@trevrosa.dev,
	nico.antinori.7@gmail.com, boqun@kernel.org, gary@garyguo.net,
	lossin@kernel.org, aliceryhl@google.com, dakr@kernel.org,
	tmgross@umich.edu, rust-for-linux@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] rust: sync: make AlwaysRefCounted::inc_ref an associated function
Date: Thu, 26 Nov 2026 20:57:35 +0700	[thread overview]
Message-ID: <1795701455.1cac907f@gmail.com> (raw)
In-Reply-To: <1795689815.75b422ec@gmail.com>

Hi all,

I am withdrawing this series. Sorry for the noise, and for the sending
rate in particular.

Andreas is right and I was wrong on the design. Making `inc_ref` unsafe
and taking `NonNull<Self>` adds a safety contract that is not needed:
leaking a reference is safe, so the function does not have to be unsafe,
and the argument should stay `&Self`. The only change that is actually
wanted is that `inc_ref` becomes an associated function.

That has already been done, and done better than I did it. Trevor's v7
does exactly that, is at v7 after review, and carries Reviewed-by from
Alice and Andreas:

  https://lore.kernel.org/rust-for-linux/20260628100731.64885-1-trev@trevrosa.dev/

So there is nothing for this series to add. I will follow Trevor's thread
rather than send another revision here.

Thanks to Andreas, Nicolas and the sashiko bot for the reviews.

Tran Van Tien


      parent reply	other threads:[~2026-11-26 13:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OToxFKfgF7gRhE7bRLNCy8rCFgDYsz3vWShTvaBIm5_P087CsaSTZlwyx4vhVvAruJaRUGhZMg9GJoY02B5qcQ==@protonmail.internalid>
2026-11-26  9:15 ` [PATCH] rust: sync: make `AlwaysRefCounted::inc_ref` an associated function Tran Van Tien
2026-11-26 10:22   ` [PATCH v2] rust: sync: make AlwaysRefCounted::inc_ref " Tran Van Tien
2026-11-26 10:36   ` [PATCH] rust: sync: make `AlwaysRefCounted::inc_ref` " Andreas Hindborg
2026-11-26 10:43   ` [PATCH v3] rust: sync: make AlwaysRefCounted::inc_ref " Tran Van Tien
2026-11-26 10:55     ` Andreas Hindborg
2026-11-26 13:48     ` Nicolás Antinori
2026-11-26 13:57     ` Tran Van Tien [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=1795701455.1cac907f@gmail.com \
    --to=7enlab@gmail.com \
    --cc=a.hindborg@kernel.org \
    --cc=aliceryhl@google.com \
    --cc=boqun@kernel.org \
    --cc=dakr@kernel.org \
    --cc=gary@garyguo.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=nico.antinori.7@gmail.com \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tmgross@umich.edu \
    --cc=trev@trevrosa.dev \
    /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