OSDN Git Service

dma-buf: add dma_resv_for_each_fence v3
authorChristian König <christian.koenig@amd.com>
Tue, 15 Jun 2021 13:10:03 +0000 (15:10 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Oct 2021 12:49:11 +0000 (14:49 +0200)
commit5baaac3184ab896d74993825858f1b1a46c460ce
tree237b794f7a37d8a4abcfba5e3cc4962bf5fae5e5
parenta0a33067b957dfab876ae26b32695f09cdc2706d
dma-buf: add dma_resv_for_each_fence v3

A simpler version of the iterator to be used when the dma_resv object is
locked.

v2: fix index check here as well
v3: minor coding improvement, some documentation cleanup

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211006123609.2026-1-christian.koenig@amd.com
drivers/dma-buf/dma-resv.c
include/linux/dma-resv.h