]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-buf: stop using the dmabuf->lock so much v2
authorChristian König <christian.koenig@amd.com>
Fri, 18 Oct 2019 14:30:19 +0000 (16:30 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 24 Oct 2019 07:18:23 +0000 (09:18 +0200)
commitf45f57cce5841516bc53026b91952984d52e7126
tree492c05cd5f8073a67aa480cef7e85ee6a6abc28f
parent15fd552d186cb0df34b9d36a07dd6677c4da56bc
dma-buf: stop using the dmabuf->lock so much v2

The attachment list is now protected by the dma_resv object.

Stop holding the dma_buf->lock while calling ->attach/->detach,
this allows for concurrent attach/detach operations.

v2: cleanup commit message and locking in _debug_show()

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/336790
drivers/dma-buf/dma-buf.c