Re: [PATCH v5 01/16] dma-buf: introduce initial file I/O infrastructure
Sidong Yang <[email protected]> Sat, 8 Aug 2026 16:42:27 +0900
| Newsgroups | gmane.linux.block,gmane.linux.kernel,gmane.linux.file-systems,gmane.linux.kernel.io-uring,gmane.linux.drivers.video-input-infrastructure,gmane.comp.video.dri.devel |
|---|---|
| Message-ID | <[email protected]> |
On 8/1/26 16:46, Pavel Begunkov wrote:
> + if (dma_resv_wait_timeout(dmabuf->resv, DMA_RESV_USAGE_KERNEL,
> + true, 0) < 0) {
> + dma_resv_unlock(dmabuf->resv);
> + goto retry;
> + }
Shouldn't this be <= 0? With a zero timeout dma_resv_wait_timeout()
returns 0 for a still pending fence; only -ERESTARTSYS is negative.
Thanks,
Sidong