]> git.hungrycats.org Git - linux/commit
dma-buf: use inline lock for the dma-fence-array
authorChristian König <christian.koenig@amd.com>
Thu, 9 Oct 2025 14:18:53 +0000 (16:18 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 23 Feb 2026 15:14:20 +0000 (16:14 +0100)
commit5943243914b9fed8e26edcb9d45421721a5e3576
treefb6db01b3edd4ebbf944313a56291ed9b2fa3c2d
parented0d6a0003fdcf8c93ff1544cf104a5456bf520e
dma-buf: use inline lock for the dma-fence-array

Using the inline lock is now the recommended way for dma_fence
implementations.

So use this approach for the framework's internal fences as well.

Also saves about 4 bytes for the external spinlock.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/r/20260219160822.1529-8-christian.koenig@amd.com
drivers/dma-buf/dma-fence-array.c
include/linux/dma-fence-array.h