]> git.ipfire.org Git - thirdparty/linux.git/commit
dma-buf: Assign separate lockdep class to array lock
authorMatthew Brost <matthew.brost@intel.com>
Tue, 24 Feb 2026 18:39:22 +0000 (10:39 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 25 Feb 2026 09:19:41 +0000 (01:19 -0800)
commit2622649ad6cdbb3e77bfafc8c0fe686090b77f70
tree610f13b4fe0260d0dcbcfb751639b3bf07cd1df6
parent2ec86535555c0e748443c1f07087c088b645a9d5
dma-buf: Assign separate lockdep class to array lock

dma_fence_array_enable_signaling() runs while holding the array
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 array inline_lock so lockdep can correctly model the hierarchy.

Fixes: 5943243914b9 ("dma-buf: use inline lock for the dma-fence-array")
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-2-matthew.brost@intel.com
drivers/dma-buf/dma-fence-array.c