public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Andreas Hindborg <a.hindborg@kernel.org>
Cc: Hannes Reinecke <hare@suse.de>, Keith Busch <kbusch@kernel.org>,
	Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>,
	Sagi Grimberg <sagi@grimberg.me>,
	lsf-pc@lists.linux-foundation.org, linux-block@vger.kernel.org,
	Bart Van Assche <bvanassche@acm.org>,
	Chaitanya Kulkarni <chaitanyak@nvidia.com>,
	Damien Le Moal <dlemoal@kernel.org>,
	Daniel Gomez <da.gomez@samsung.com>,
	Hans Holmberg <Hans.Holmberg@wdc.com>, Jan Kara <jack@suse.cz>,
	Johannes Thumshirn <johannes.thumshirn@wdc.com>,
	John Pittman <jpittman@redhat.com>,
	John Stultz <jstultz@google.com>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Miguel Ojeda <ojeda@kernel.org>, Ming Lei <ming.lei@redhat.com>,
	Niklas Cassel <cassel@kernel.org>,
	Nitesh Shetty <nj.shetty@samsung.com>,
	Oliver Mangold <oliver.mangold@pm.me>,
	Pankaj Raghav <kernel@pankajraghav.com>,
	Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
	Theodore Tso <tytso@mit.edu>,
	Wedson Almeida Filho <wedsonaf@gmail.com>,
	gost.dev@samsung.com, rust-for-linux@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [LSF/MM/BPF TOPIC][RESEND] Status of Rust in the block subsystem
Date: Tue, 17 Mar 2026 09:18:48 +0100	[thread overview]
Message-ID: <2026031706-simile-cornball-7744@gregkh> (raw)
In-Reply-To: <87a4w6swup.fsf@t14s.mail-host-address-is-not-set>

On Tue, Mar 17, 2026 at 09:07:10AM +0100, Andreas Hindborg wrote:
> "Hannes Reinecke" <hare@suse.de> writes:
> 
> > On 3/17/26 00:51, Keith Busch wrote:
> >> On Wed, Mar 11, 2026 at 02:21:00PM +0100, Andreas Hindborg wrote:
> >>> As this topic was not selected for discussion at LSF, and I did not
> >>> receive an invitation for LSF this year, I propose that we discuss these
> >>> two topics on list.
> >>>
> >>> I do believe that these topics need to be discussed, and I would very
> >>> much appreciate your input.
> >>
> >> I can sympathise the difficulty of maintaining external modules.
> >>
> >> In terms of this being a reference driver, that implies some future
> >> hardware driver may leverage this for its development. Is there anything
> >> in mind at this point for production? If so, maybe that use case should
> >> take the lead. But either way, I think rust-nvme upstream inclusion
> >> would invite confusion. Once it's upstream, it's no longer a reference
> >> when distros and users turn it on.
> >>
> > I wholeheartedly agree.
> >
> > While I do see the original appeal to have a rust-nvme driver, having
> > one will just lead to confusion on all sides, especially for distros.
> > (Why is it there? should it be preferred to the original one? Do we
> > have to support both of them? Are there features missing in either
> > of these drivers?)
> > In general we are trying hard to avoid duplication in the linux kernel,
> > especially on the driver side. We constantly have to fight^Wargue
> > with driver vendors why duplicating existing drivers to support new
> > hardware is a bad idea, so we really should not start now just because
> > the driver is written in another language.
> > (That really might be giving vendors bad ideas :-)
> 
> I actually agree to some extent. But I do think we can get around most
> confusion with loud and clear documentation. We could make the driver
> not probe by default, requiring a configfs setting to probe. Or leave
> the PCI identifier table empty, so patching the driver is required to
> make it probe.
> 
> For me, the big benefit would be having the rust nvme driver as part of
> an allmodconfig or allyesconfig. That would prevent a ton of trouble.
> 
> We do plan to utilize the block infrastructure, but I think we are still
> quite a long way from sending anything. Keeping the rust nvme driver in
> tree till that point would prevent pci, dma, irq, etc. from developing
> in ways that would not support a block device use case. As an example,
> upstream Rust irq APIs are not actually able to support NVMe at the
> moment. They work fine for GPU drivers though. And I cannot go an fix
> them without a user. Same for DMA pool.
> 
> I could go and find some other piece of unsupported PCI hardware and
> write a driver for that, use that to keep the APIs in shape upstream.
> It's just a lot more work and the NVMe driver is already here and 90%
> ready.

This implies that there really is no "need" for these rust bindings at
all, if you don't know of, or are planning for, any real driver for
them.  So why have them at all?

For the PCI and driver core bindings, and the majority of the other ones
merged, we have real users (binder, nova-core, etc.) and so we are
willing to take them and keep them up to date.  For these block
bindings, why is it even worth it to have them around if there's never
going to be a real user?

thanks,

greg k-h

  reply	other threads:[~2026-03-17  8:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18 21:31 [LSF/MM/BPF TOPIC][RESEND] Status of Rust in the block subsystem Andreas Hindborg
2026-03-11 13:21 ` Andreas Hindborg
2026-03-16 23:51   ` Keith Busch
2026-03-17  7:18     ` Hannes Reinecke
2026-03-17  7:36       ` Miguel Ojeda
2026-03-17  8:07       ` Andreas Hindborg
2026-03-17  8:18         ` Greg KH [this message]
2026-03-17  8:30           ` Andreas Hindborg
2026-03-17  8:51             ` Greg KH
2026-03-17  9:36               ` Andreas Hindborg

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=2026031706-simile-cornball-7744@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=Hans.Holmberg@wdc.com \
    --cc=a.hindborg@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=bvanassche@acm.org \
    --cc=cassel@kernel.org \
    --cc=chaitanyak@nvidia.com \
    --cc=da.gomez@samsung.com \
    --cc=dlemoal@kernel.org \
    --cc=gost.dev@samsung.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=jack@suse.cz \
    --cc=johannes.thumshirn@wdc.com \
    --cc=jpittman@redhat.com \
    --cc=jstultz@google.com \
    --cc=kbusch@kernel.org \
    --cc=kernel@pankajraghav.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=martin.petersen@oracle.com \
    --cc=ming.lei@redhat.com \
    --cc=nj.shetty@samsung.com \
    --cc=ojeda@kernel.org \
    --cc=oliver.mangold@pm.me \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=sagi@grimberg.me \
    --cc=shinichiro.kawasaki@wdc.com \
    --cc=tytso@mit.edu \
    --cc=wedsonaf@gmail.com \
    /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