]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: make fence mandatory for dma_resv_add_excl_fence v2
authorChristian König <christian.koenig@amd.com>
Thu, 11 Nov 2021 09:46:46 +0000 (10:46 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 30 Nov 2021 14:59:33 +0000 (15:59 +0100)
commit4ca13ddd7f6a61b500cce9cc4cc557f99e2aebab
treea61811da7cd2727f30f9424b873548d016a65b04
parent2346bf2982368108908db1718328d1c13408c8b5
dma-buf: make fence mandatory for dma_resv_add_excl_fence v2

Calling dma_resv_add_excl_fence() with the fence as NULL and expecting
that that this frees up the fences is simply abuse of the internals of
the dma_resv object.

v2: drop the fence pruning completely.

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/20211129120659.1815-4-christian.koenig@amd.com
drivers/dma-buf/dma-resv.c