]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: use inline lock for the stub fence v2
authorChristian König <christian.koenig@amd.com>
Thu, 9 Oct 2025 14:07:49 +0000 (16:07 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 23 Feb 2026 15:14:20 +0000 (16:14 +0100)
commited0d6a0003fdcf8c93ff1544cf104a5456bf520e
tree8b9189d6a368cf2305d876f2a9416c6fe38e243f
parent3695d754ffbb176afe3cb47b705b72bf85ed63f0
dma-buf: use inline lock for the stub fence v2

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.

v2: drop unnecessary changes

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-7-christian.koenig@amd.com
drivers/dma-buf/dma-fence.c