From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: dma-buf: revert "use inline lock for the dma-fence-chain"
Date: Tue, 24 Feb 2026 09:42:37 +1000 [thread overview]
Message-ID: <review-overall-20260223195705.206226-1-christian.koenig@amd.com> (raw)
In-Reply-To: <20260223195705.206226-1-christian.koenig@amd.com>
Overall Series Review
Subject: dma-buf: revert "use inline lock for the dma-fence-chain"
Author: "=?UTF-8?q?Christian=20K=C3=B6nig?=" <ckoenig.leichtzumerken@gmail.com>
Patches: 2
Reviewed: 2026-02-24T09:42:37.426008
---
This is a single patch that reverts commit a408c0ca0c411ca1ead995bdae3112a806c87556, which changed dma-fence-chain to use an "inline lock" (passing NULL to `dma_fence_init64` and relying on a lock embedded within the `dma_fence` structure itself). The revert restores a per-chain-node `spinlock_t lock` field in `struct dma_fence_chain`, initializes it explicitly, and passes it to `dma_fence_init64`.
The stated reason is a lockdep splat. The patch is mechanically correct -- the spinlock is properly initialized before use, the field is properly placed in the struct, and the lifecycle is correct since the lock lives as long as the chain node. However, the commit message is minimal: it acknowledges this is "not really the right fix" but doesn't include the lockdep splat output or explain the root cause of the splat. Matt Brost's reply on the list suggests a potentially better fix using `lockdep_set_class` to assign distinct lock classes for chain and array fences, which would preserve the inline lock optimization while resolving the lockdep complaint.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-02-23 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 19:57 [PATCH] dma-buf: revert "use inline lock for the dma-fence-chain" Christian König
2026-02-23 20:18 ` Matthew Brost
2026-02-23 23:42 ` Claude Code Review Bot [this message]
2026-02-23 23:42 ` 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-overall-20260223195705.206226-1-christian.koenig@amd.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