]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: Don't misuse dma_fence_signal()
authorPhilipp Stanner <phasta@kernel.org>
Mon, 1 Dec 2025 10:50:09 +0000 (11:50 +0100)
committerPhilipp Stanner <phasta@kernel.org>
Thu, 4 Dec 2025 14:03:40 +0000 (15:03 +0100)
commit583d1fa19148c261868fa5c2382fe552c06a2164
treed2544f40ead918547b700aceb23b68aa76518f8b
parentdbcd754b845987f7157260c15e80ae19da81c9df
dma-buf: Don't misuse dma_fence_signal()

The return code of dma_fence_signal() is not really useful as there is
nothing reasonable to do if a fence was already signaled. That return
code shall be removed from the kernel.

Moreover, dma_fence_signal() should not be used to check whether fences
are signaled. That's what dma_fence_is_signaled() and
dma_fence_test_signaled_flag() exist for.

Replace the non-canonical usage of dma_fence_signal().

Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20251201105011.19386-7-phasta@kernel.org
drivers/dma-buf/st-dma-fence.c