]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: revert "return only unsignaled fences in dma_fence_unwrap_for_each v3"
authorChristian König <christian.koenig@amd.com>
Mon, 11 Jul 2022 14:48:01 +0000 (16:48 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 14 Jul 2022 12:41:30 +0000 (14:41 +0200)
commit25dca4bee7fa662e2a6865b79ccfa3fbc5293202
tree58f17494fbc0e272732f23470a65e1d756348b16
parentfcc70b84f755834441e66feb9651d6c0ec5a3045
dma-buf: revert "return only unsignaled fences in dma_fence_unwrap_for_each v3"

This reverts commit 6361dcfe7f30affeeeda059c999d7af7860454a8.

It turned out that this is not correct. Especially the sync_file info
IOCTL needs to see even signaled fences to correctly report back their
status to userspace.

Instead add the filter in the merge function again where it makes sense.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Karolina Drobnik <karolina.drobnik@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220712102849.1562-1-christian.koenig@amd.com
drivers/dma-buf/dma-fence-unwrap.c
include/linux/dma-fence-unwrap.h