sync: protect unlocked access to fence status
authorErik Gilling <konkers@android.com>
Thu, 11 Oct 2012 19:35:22 +0000 (12:35 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:47:13 +0000 (17:47 +0800)
commite3ab954943623e9b2b15ccd157748c92ab629717
treec043c6b3cbc87e1af63571b2ed769da2a0e98a3a
parent98bcb1d21f7cd4a626a7be789ffa1fb51627905d
sync: protect unlocked access to fence status

Fence status is checked outside of locks in both sync_fence_wait and
sync_fence_poll.  This patch adds propper barrier protection in these
cases to avoid seeing stale status.

Change-Id: I9d8b6ce6accb415e797df58068a1ccd54e6be445
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c