]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: return only unsignaled fences in dma_fence_unwrap_for_each v3
authorChristian König <christian.koenig@amd.com>
Wed, 4 May 2022 11:01:29 +0000 (13:01 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 30 May 2022 12:23:21 +0000 (14:23 +0200)
commitcea5e054cbd133e95e6c85777cbd29d356210b8a
tree0482066134e33262f44efd3d89ff9b21b9ecc652
parent5e2808708bfcc669a70481209549db88e7fcfb92
dma-buf: return only unsignaled fences in dma_fence_unwrap_for_each v3

dma_fence_chain containers cleanup signaled fences automatically, so
filter those out from arrays as well.

v2: fix missing walk over the array
v3: massively simplify the patch and actually update the description.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220518135844.3338-4-christian.koenig@amd.com
include/linux/dma-fence-unwrap.h