]> git.baikalelectronics.ru Git - kernel.git/commit
dma-fence: Signal all callbacks from dma_fence_release()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 9 Jun 2019 11:00:02 +0000 (12:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 9 Jun 2019 12:01:44 +0000 (13:01 +0100)
commit2844d511e1d8f9f1d33c3424575c903bd0ea1fdf
tree9c3d2de4d74d84434d8589003dc1312f5e680b76
parent6e51400cf364c21965c3be852e0fc419fa7c5e6d
dma-fence: Signal all callbacks from dma_fence_release()

This is an illegal scenario, to free the fence whilst there are pending
callbacks. Currently, we emit a WARN and then cast aside the callbacks
leaving them dangling. Alternatively, we could set an error on the fence
and then signal fence so that any dependency chains from the fence can
be tidied up, and if they care they can check for the error.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190609110002.31915-1-chris@chris-wilson.co.uk
drivers/dma-buf/dma-fence.c