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: Add ARef support for work items Date: Wed, 25 Mar 2026 07:11:03 +1000 Message-ID: In-Reply-To: <20260323-aref-workitem-v3-0-f59729b812aa@collabora.com> References: <20260323-aref-workitem-v3-0-f59729b812aa@collabora.com> 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: Add ARef support for work items Author: Daniel Almeida Patches: 7 Reviewed: 2026-03-25T07:11:03.971230 --- This is a well-structured 4-patch series that adds `ARef` support for wo= rk items in the kernel's Rust workqueue subsystem, and then uses that suppo= rt to allow `drm::Device` to dispatch work items through to its driver-p= rivate data (`T::Data`). The series follows the established pattern from th= e existing `Arc` and `Pin>` implementations closely. The code is= clean, the safety comments are thorough, and the series has already been r= eviewed by Alice Ryhl and acked by Danilo Krummrich. The implementation is sound =E2=80=94 `ARef::into_raw` / `ARef::from_raw` u= se `NonNull` which aligns well with the work item lifecycle pattern of l= eaking a pointer on enqueue and reclaiming it in the `run` callback. The `d= rm::Device` dispatching approach (forwarding `HasWork`/`HasDelayedWork`/`Wo= rkItem` implementations to `T::Data` via `container_of`) is a reasonable wa= y to work around the orphan rule. No blocking issues found. A few minor observations below. --- Generated by Claude Code Patch Reviewer