Re: [PATCH RFC v2] rust: rxarray: add rust xarray support
From: Daniel Gomez
Date: Fri Oct 09 2026 - 15:38:27 EST
On 2026-10-06T14:37:14+01:00, Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> On Mon, Oct 05, 2026 at 03:37:30PM +0200, Daniel Gomez wrote:
> > From: Daniel Gomez <da.gomez@xxxxxxxxxxx>
> >
> > Add Rust XArray support.
> >
> > This is the Rust implementation of the XArray lib/xarray.c. As of now,
> > it supports basic functionality: store, load, load_mut and erase.
> >
> > Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> > Signed-off-by: Daniel Gomez <da.gomez@xxxxxxxxxxx>
> > ---
> > As discussed at LPC26, this is the version of the Rust XArray that is
> > ready to merge for testing and evaluating purposes following the Rust
> > reference implementation rule (experimental) [1]. Next, we will make
> > progress following the roadmap suggested in v1.
> >
> > For the motivation, see v1 link below in the changelog.
> >
> > A branch with the patches can be found here [2].
> >
> > Link: https://rust-for-linux.com/rust-reference-drivers [1]
> > Link: https://git.kernel.org/pub/scm/linux/kernel/git/da.gomez/linux.git/log/?h=rxarray-next [2]
>
> Reviewed-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
>
Thanks, Matthew.
Following our discussion with Miguel at LPC, I'll send PRs for the
Rust XArray to you, ie. the "PRs from their Rust sub-maintainer" option
in [1] using my tree at kernel.org [2]. If that ever doesn't fit your
schedule, the Rust for Linux tree takes them as fallback [3]. Note that
the Rust tree follows its key cycle dates, i.e. the last version of a
series should reach the list before -rc5 [4]. We have passed that date,
(for R4L tree) but I'll send the PR anyway so you can pick up when
ready.
And as I mentioned, I'm happy to take on more of the work if it helps.
[1] https://rust-for-linux.com/rust-kernel-policy#how-is-rust-introduced-in-a-subsystem
[2] https://git.kernel.org/pub/scm/linux/kernel/git/da.gomez/linux.git/log/?h=rxarray-next
[3] https://rust-for-linux.com/rust-kernel-policy#who-maintains-rust-code-in-the-kernel
[4] https://rust-for-linux.com/contributing#key-cycle-dates