2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/dma-buf
Christian König 2b95a7db6e dma-buf: fix timeout handling in dma_resv_wait_timeout v2
Even the kerneldoc says that with a zero timeout the function should not
wait for anything, but still return 1 to indicate that the fences are
signaled now.

Unfortunately that isn't what was implemented, instead of only returning
1 we also waited for at least one jiffies.

Fix that by adjusting the handling to what the function is actually
documented to do.

v2: improve code readability

Reported-by: Marek Olšák <marek.olsak@amd.com>
Reported-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20250129105841.1806-1-christian.koenig@amd.com
2025-06-30 13:15:44 +02:00
..
heaps dma-buf: heaps: system: Remove global variable 2025-04-08 11:48:39 +02:00
dma-buf-sysfs-stats.c dma-buf: Fix the typo in DMA-BUF statistics doc 2023-07-27 09:43:33 +02:00
dma-buf-sysfs-stats.h dma-buf: fix dma_buf_export init order v2 2022-12-13 08:31:45 +01:00
dma-buf.c dma-buf: fix compare in WARN_ON_ONCE 2025-06-11 11:42:49 +02:00
dma-fence-array.c dma-buf: fix dma_fence_array_signaled v4 2024-11-25 20:08:27 +01:00
dma-fence-chain.c dma-buf/fence-chain: Add fence deadline support 2023-03-28 13:38:52 -07:00
dma-fence-unwrap.c dma-fence: Add helper to sort and deduplicate dma_fence arrays 2025-05-05 13:29:44 -04:00
dma-fence.c dma-buf: add WARN_ON() illegal dma-fence signaling 2024-10-09 14:22:49 +02:00
dma-heap.c dma-buf: heaps: Deduplicate docs and adopt common format 2024-07-23 09:52:23 +02:00
dma-resv.c dma-buf: fix timeout handling in dma_resv_wait_timeout v2 2025-06-30 13:15:44 +02:00
Kconfig udmabuf: fix vmap_udmabuf error page set 2024-09-20 14:07:32 -07:00
Makefile dma-buf: cleanup dma_fence_unwrap implementation 2022-05-30 14:16:32 +02:00
selftest.c
selftest.h
selftests.h dma-buf: add dma_fence_unwrap v2 2022-03-25 14:18:28 +01:00
st-dma-fence-chain.c dma-buf: Fix NULL pointer dereference in sanitycheck() 2024-03-20 10:15:45 +01:00
st-dma-fence-unwrap.c dma-fence: Add some more fence-merge-unwrap tests 2025-01-09 16:40:02 +01:00
st-dma-fence.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
st-dma-resv.c dma-buf: Enable signaling on fence for selftests 2022-09-16 15:53:25 +02:00
sw_sync.c Linux 6.15-rc5 2025-05-06 16:39:25 +10:00
sync_debug.c dma-buf/sw-sync: Remove unused debug code 2025-05-08 12:51:59 +02:00
sync_debug.h dma-buf/sw-sync: Remove unused debug code 2025-05-08 12:51:59 +02:00
sync_file.c dma-buf/sync_file: Add SET_DEADLINE ioctl 2023-12-02 01:17:48 +02:00
sync_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
udmabuf.c udmabuf: use sgtable-based scatterlist wrappers 2025-06-11 13:18:07 +02:00