Re: [PATCH] dma-buf: fix timeout handling in dma_resv_wait_timeout v2

2025-01-29 Thread Lucas Stach
Am Mittwoch, dem 29.01.2025 um 11:58 +0100 schrieb Christian König: > 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

[PATCH] dma-buf: fix timeout handling in dma_resv_wait_timeout v2

2025-01-29 Thread Christian König
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 th