public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: rust: drm: dispatch delayed work items to the private data
Date: Wed, 25 Mar 2026 07:11:04 +1000	[thread overview]
Message-ID: <review-patch4-20260323-aref-workitem-v3-4-f59729b812aa@collabora.com> (raw)
In-Reply-To: <20260323-aref-workitem-v3-4-f59729b812aa@collabora.com>

Patch Review

Another small patch adding `HasDelayedWork` for `Device<T>`:

```rust
unsafe impl<T, const ID: u64> HasDelayedWork<Device<T>, ID> for Device<T>
where
    T: drm::Driver,
    T::Data: HasDelayedWork<Device<T>, ID>,
{
}
```

`HasDelayedWork` is a marker trait (no methods) that inherits from `HasWork`, so this is just declaring that the delayed work guarantee is satisfied. Since it requires `T::Data: HasDelayedWork<Device<T>, ID>`, the guarantee flows from the driver's data type. Correct.

**One note:** This patch adds the `HasDelayedWork` import but does not add a corresponding `WorkItem` impl for the delayed case. This is fine because the same `WorkItem` impl from Patch 2 covers both regular and delayed work — `RawDelayedWorkItem` just extends `RawWorkItem`, and the `WorkItemPointer::run` function is shared.

Overall, this is a clean, well-reviewed series. No correctness issues found.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-03-24 21:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23 23:26 [PATCH v3 0/4] rust: Add ARef support for work items Daniel Almeida
2026-03-23 23:26 ` [PATCH v3 1/4] rust: workqueue: add support for ARef<T> Daniel Almeida
2026-03-24 11:00   ` Alice Ryhl
2026-03-24 21:11   ` Claude review: " Claude Code Review Bot
2026-03-23 23:27 ` [PATCH v3 2/4] rust: drm: dispatch work items to the private data Daniel Almeida
2026-03-24 21:11   ` Claude review: " Claude Code Review Bot
2026-03-23 23:27 ` [PATCH v3 3/4] rust: workqueue: add delayed work support for ARef<T> Daniel Almeida
2026-03-24 21:11   ` Claude review: " Claude Code Review Bot
2026-03-23 23:27 ` [PATCH v3 4/4] rust: drm: dispatch delayed work items to the private data Daniel Almeida
2026-03-24 21:11   ` Claude Code Review Bot [this message]
2026-03-24  8:20 ` [PATCH v3 0/4] rust: Add ARef support for work items Alice Ryhl
2026-03-24 21:11 ` Claude review: " Claude Code Review Bot

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=review-patch4-20260323-aref-workitem-v3-4-f59729b812aa@collabora.com \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.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