diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-18 19:34:25 -0400 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@ti.com> | 2012-03-26 02:02:50 -0400 |
commit | 6b607e3a658fee490bdabfdeb739a3eb498b1bff (patch) | |
tree | a10ad6f713586f9dc7584fe54110d1c44f87b1d5 /include | |
parent | f9a24d1ac9cb82baf5ec5efdb6580a9ce0bd5bfc (diff) |
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@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma-buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index bc4203dc6e18..24e0f4828711 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h | |||
@@ -88,7 +88,7 @@ struct dma_buf { | |||
88 | struct file *file; | 88 | struct file *file; |
89 | struct list_head attachments; | 89 | struct list_head attachments; |
90 | const struct dma_buf_ops *ops; | 90 | const struct dma_buf_ops *ops; |
91 | /* mutex to serialize list manipulation and other ops */ | 91 | /* mutex to serialize list manipulation and attach/detach */ |
92 | struct mutex lock; | 92 | struct mutex lock; |
93 | void *priv; | 93 | void *priv; |
94 | }; | 94 | }; |