diff options
author | Niv Yehezkel <executerx@gmail.com> | 2014-05-24 10:28:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-25 11:09:14 -0700 |
commit | 296066093b5f5ccf30a9c3b2047eb6a8875a88f0 (patch) | |
tree | bc4e5ab3f1ddd38c6f0e874c59fbf615d40ca345 /drivers/staging/android/sync.c | |
parent | 77870a1b856d181936ca13f6732010e63b803b4a (diff) |
staging: android: describe use of memory barrier on sync.c
Added comments describing the purpose of using write memory
barrier in the context of sync_timeline_destory.
Signed-off-by: Niv Yehezkel <executerx@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/sync.c')
-rw-r--r-- | drivers/staging/android/sync.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 1f88c5d0f0c7..18174f7c871c 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android/sync.c @@ -92,6 +92,10 @@ static void sync_timeline_free(struct kref *kref) void sync_timeline_destroy(struct sync_timeline *obj) { obj->destroyed = true; + /* + * Ensure timeline is marked as destroyed before + * changing timeline's fences status. + */ smp_wmb(); /* |