]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dma-buf: might_sleep() in dma_buf_unmap_attachment()
authorRob Clark <rob@ti.com>
Fri, 28 Sep 2012 07:29:43 +0000 (09:29 +0200)
committerSumit Semwal <sumit.semwal@ti.com>
Fri, 28 Sep 2012 09:33:18 +0000 (15:03 +0530)
commitba4205121f8199c32658b03c2660b1a9f9ff217c
treecb5bc5ed17e27dccd5b8e6e0c78d5f58b3dace1d
parent63994137eb53bb0fc42ad180c0ce509d3eb3bdc9
dma-buf: might_sleep() in dma_buf_unmap_attachment()

We never really clarified if unmap could be done in atomic context.
But since mapping might require sleeping, this implies mutex in use
to synchronize mapping/unmapping, so unmap could sleep as well.  Add
a might_sleep() to clarify this.

Signed-off-by: Rob Clark <rob@ti.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c