Re: [PATCH 1/2] rust: pci: require Send for Driver trait implementers

From: Greg KH
Date: Wed Mar 19 2025 - 13:08:25 EST


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@xxxxxxxxxx>
> Closes: https://lore.kernel.org/lkml/Z9rDxOJ2V2bPjj5i@xxxxxxxxxx/
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
> 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?

thanks,

greg k-h