From: Greg KH <gregkh@linuxfoundation.org>
To: Danilo Krummrich <dakr@kernel.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 10:55:59 -0700 [thread overview]
Message-ID: <2025031938-dismiss-specked-a590@gregkh> (raw)
In-Reply-To: <Z9r6sUYPOajnkiHD@cassiopeiae>
On Wed, Mar 19, 2025 at 06:11:13PM +0100, Danilo Krummrich wrote:
> 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.
Cool, I'll deal with that in a few weeks when -rc1 is out, thanks for
the warning.
greg k-h
prev parent reply other threads:[~2025-03-19 17:57 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
2025-03-19 17:55 ` Greg KH [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=2025031938-dismiss-specked-a590@gregkh \
--to=gregkh@linuxfoundation.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=dakr@kernel.org \
--cc=gary@garyguo.net \
--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