]> git.baikalelectronics.ru Git - kernel.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)
commita8d4d0e86a3feab0ed0621f9f59002512c927829
tree492c05cd5f8073a67aa480cef7e85ee6a6abc28f
parent3e0668182e65a50103bd8a400daa7e617f5e2f2f
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