]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: clarify dma_fence_add_callback documentation
authorChristian König <christian.koenig@amd.com>
Tue, 20 Jul 2021 13:37:35 +0000 (15:37 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 3 Sep 2021 08:12:12 +0000 (10:12 +0200)
commit2570d29fafc3de4d31737a79593eec6d1d370a91
treef867a37078f35a098119b3ce11ab8578ab0c39e4
parent7ad472acb2e4dad1eb440d12eb05e75924da65c6
dma-buf: clarify dma_fence_add_callback documentation

That the caller doesn't need to keep a reference is rather
risky and not defensive at all.

Especially dma_buf_poll got that horrible wrong, so better
remove that sentence and also clarify that the callback
might be called in atomic or interrupt context.

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/20210901120240.7339-3-christian.koenig@amd.com
drivers/dma-buf/dma-fence.c