From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: rust: maple_tree: implement Send and Sync for MapleTree Date: Thu, 07 May 2026 13:26:28 +1000 Message-ID: In-Reply-To: <20260506135122.GA1432412@joelbox2> References: <20260506135122.GA1432412@joelbox2> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Overall Series Review Subject: rust: maple_tree: implement Send and Sync for MapleTree Author: Joel Fernandes Patches: 3 Reviewed: 2026-05-07T13:26:28.419240 --- This is a single patch (v2) that adds `Send` and `Sync` implementations for= `MapleTree` in the Rust kernel bindings. The motivation is clear and we= ll-documented: the C `maple_tree` struct contains a `*mut c_void` which inh= ibits Rust's auto-trait derivation, blocking downstream users like Nova's `= Vmm` from satisfying the `Send` bound required by `pci::Driver`. The approach is correct and follows established kernel Rust patterns =E2=80= =94 it mirrors `XArray`'s Send/Sync implementation almost exactly (see `rus= t/kernel/xarray.rs:272-277`). The `MapleGuard` is also properly made `!Send= ` via `NotThreadSafe`, which is important since the underlying spinlock mus= t be released on the same CPU that acquired it. **Overall: This patch looks correct and ready to merge**, with one minor ni= t below. --- Generated by Claude Code Patch Reviewer