]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: use inline lock for the dma-fence-chain
authorChristian König <christian.koenig@amd.com>
Thu, 9 Oct 2025 14:32:33 +0000 (16:32 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 23 Feb 2026 15:14:21 +0000 (16:14 +0100)
commita408c0ca0c411ca1ead995bdae3112a806c87556
tree301448d8d9b125ac7fe2160a8328138e34e02449
parent5943243914b9fed8e26edcb9d45421721a5e3576
dma-buf: use inline lock for the dma-fence-chain

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