]> git.hungrycats.org Git - linux/commit
dma-buf: Assign separate lockdep class to chain lock
authorMatthew Brost <matthew.brost@intel.com>
Tue, 24 Feb 2026 18:39:21 +0000 (10:39 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 25 Feb 2026 09:16:11 +0000 (01:16 -0800)
commit2ec86535555c0e748443c1f07087c088b645a9d5
treefb8f5c5b611acaa52b32341784c8050ce44b6dc5
parent3d8fd28d056a6f191763061b05564d46110bbea9
dma-buf: Assign separate lockdep class to chain lock

dma_fence_chain_enable_signaling() and runs while holding the chain
inline_lock and may add callbacks to underlying fences, which takes
their inline_lock.

Since both locks share the same lockdep class, this valid nesting
triggers a recursive locking warning. Assign a distinct lockdep class
to the chain inline_lock so lockdep can correctly model the hierarchy.

Fixes: a408c0ca0c41 ("dma-buf: use inline lock for the dma-fence-chain")
Cc: Christian König <christian.koenig@amd.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Philipp Stanner <phasta@kernel.org>
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20260224183922.2256492-1-matthew.brost@intel.com
drivers/dma-buf/dma-fence-chain.c