]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma-buf: don't hold the mutex around map/unmap calls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 18 Mar 2012 23:34:25 +0000 (00:34 +0100)
committerSumit Semwal <sumit.semwal@ti.com>
Wed, 21 Mar 2012 06:51:09 +0000 (12:21 +0530)
commit209b3f266c2b513162773e220766bcc90dd75685
treeb86de7fad6c71a4011c001abe96a94524220f297
parentff626cc8fffc59cafe7ab49acc55780e4513be47
dma-buf: don't hold the mutex around map/unmap calls

The mutex protects the attachment list and hence needs to be held
around the callbakc to the exporters (optional) attach/detach
functions.

Holding the mutex around the map/unmap calls doesn't protect any
dma_buf state. Exporters need to properly protect any of their own
state anyway (to protect against calls from their own interfaces).
So this only makes the locking messier (and lockdep easier to anger).

Therefore let's just drop this.

v2: Rebased on top of latest dma-buf-next git.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
drivers/base/dma-buf.c
include/linux/dma-buf.h