Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Danilo Krummrich <dakr@kernel.org>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: bhelgaas@google.com, rafael@kernel.org, ojeda@kernel.org,
	alex.gaynor@gmail.com, boqun.feng@gmail.com, gary@garyguo.net,
	bjorn3_gh@protonmail.com, benno.lossin@proton.me,
	a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu,
	linux-pci@vger.kernel.org, rust-for-linux@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] rust: pci: require Send for Driver trait implementers
Date: Wed, 19 Mar 2025 18:11:13 +0100	[thread overview]
Message-ID: <Z9r6sUYPOajnkiHD@cassiopeiae> (raw)
In-Reply-To: <2025031914-knelt-coffee-8821@gregkh>

On Wed, Mar 19, 2025 at 10:03:49AM -0700, Greg KH wrote:
> On Wed, Mar 19, 2025 at 03:52:55PM +0100, Danilo Krummrich wrote:
> > The instance of Self, returned and created by Driver::probe() is
> > dropped in the bus' remove() callback.
> > 
> > Request implementers of the Driver trait to implement Send, since the
> > remove() callback is not guaranteed to run from the same thread as
> > probe().
> > 
> > Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions")
> > Reported-by: Alice Ryhl <aliceryhl@google.com>
> > Closes: https://lore.kernel.org/lkml/Z9rDxOJ2V2bPjj5i@google.com/
> > Signed-off-by: Danilo Krummrich <dakr@kernel.org>
> > ---
> >  rust/kernel/pci.rs | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> As there's no in-kernel users of these, any objection for me to take
> them for 6.15-rc1, or should they go now to Linus for 6.14-final?

I think it's fine to take them for 6.15-rc1 only.

--

Note that, while those patches can be taken "as is" to stable trees, they
require

	rust: platform: impl Send + Sync for platform::Device
	rust: pci: impl Send + Sync for pci::Device

as well, if

	7b948a2af6b5 ("rust: pci: fix unrestricted &mut pci::Device")
	4d320e30ee04 ("rust: platform: fix unrestricted &mut platform::Device")

are in the same tree.

  reply	other threads:[~2025-03-19 17:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 14:52 [PATCH 1/2] rust: pci: require Send for Driver trait implementers Danilo Krummrich
2025-03-19 14:52 ` [PATCH 2/2] rust: platform: " Danilo Krummrich
2025-03-19 15:02   ` Benno Lossin
2025-03-19 15:02 ` [PATCH 1/2] rust: pci: " Benno Lossin
2025-03-19 17:03 ` Greg KH
2025-03-19 17:11   ` Danilo Krummrich [this message]
2025-03-19 17:55     ` Greg KH

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=Z9r6sUYPOajnkiHD@cassiopeiae \
    --to=dakr@kernel.org \
    --cc=a.hindborg@kernel.org \
    --cc=alex.gaynor@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=benno.lossin@proton.me \
    --cc=bhelgaas@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=gary@garyguo.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rafael@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