OSDN Git Service

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)
commit044e55b14657feb7522715ecec351990bd232ae0
treef867a37078f35a098119b3ce11ab8578ab0c39e4
parentb83dcd753dbe42d5e7467ab65124f3d0a6002dc3
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