]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf/sync_file: add sync_file_get_fence()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 5 Aug 2016 13:39:36 +0000 (10:39 -0300)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 11 Aug 2016 10:03:24 +0000 (15:33 +0530)
commit6fa1a5663bc5741cb158e8345dea17542dccf8ac
tree49121dcbbcec8f6c7acc8cd6762395e81183c18b
parent9561a43755ad065aef673f51ff5b9332484cdfb4
dma-buf/sync_file: add sync_file_get_fence()

Creates a function that given an sync file descriptor returns a
fence containing all fences in the sync_file.

v2: Comments by Daniel Vetter
- Adapt to new version of fence_collection_init()
- Hold a reference for the fence we return

v3:
- Adapt to use fput() directly
- rename to sync_file_get_fence() as we always return one fence

v4: Adapt to use fence_array

v5: set fence through fence_get()

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/sync_file.c
include/linux/sync_file.h