[Linaro-mm-sig] [PATCH 4/4] dma-buf: Move code out of mutex-protected section in dma_buf_attach()
Chris Wilson
chris at chris-wilson.co.uk
Thu Jan 26 12:11:57 UTC 2012
On Thu, 26 Jan 2012 12:27:25 +0100, Laurent Pinchart <laurent.pinchart at ideasonboard.com> wrote:
> Some fields can be set without mutex protection. Initialize them before
> locking the mutex.
struct mutex lock is described as
/* mutex to serialize list manipulation and other ops */
maybe now is a good time to be a little more descriptive in what that
mutex is meant to protect and sprinkle enforcement throughout the code
as a means of documentation.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Linaro-mm-sig
mailing list