From: Daniel Vetter Date: Sun, 18 Mar 2012 23:34:25 +0000 (+0100) Subject: dma-buf: don't hold the mutex around map/unmap calls X-Git-Tag: v3.4-rc1~57^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b607e3a658fee490bdabfdeb739a3eb498b1bff;p=pandora-kernel.git 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 Reviewed-by: Rob Clark Signed-off-by: Sumit Semwal --- Reading git-diff-tree failed