Re: [PATCH v12 22/22] rust: maple_tree: implement Send and Sync for MapleTree

Alexandre Courbot
2026-05-02T15:43:02Z

On Sun Apr 26, 2026 at 6:14 AM JST, Joel Fernandes wrote:
> The C maple_tree struct contains a *mut c_void, which prevents Rust from
> auto-deriving Send/Sync. Following is an example error message when using
> MapleTree in nova-core's Vmm.
>
> This propagates up through MapleTreeAlloc to Vmm, BarUser, Gpu, and NovaCore,
> causing NovaCore to fail the Send bound required by pci::Driver:

This patch is not at the right place - the last few patches of the
series won't build without it.

Besides you have sent it separately before this series, so just mention
it as a dependency in the cover letter, so reviewers can pick it up
before applying the series and not witness it breaking in the course of
reviewing it. The cover letter already mentions the bitfield series as a
dependency, so the same could have been done for this one.