]> 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)
commitc92322ec82782a171c48fd81bd5bc3d42075b0d9
tree492c05cd5f8073a67aa480cef7e85ee6a6abc28f
parentb6c1600ad4c7172de257d58c5a8afe8a3effe6ee
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