public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: android: describe use of memory barrier on sync.c
@ 2014-05-24 14:28 Niv Yehezkel
  0 siblings, 0 replies; only message in thread
From: Niv Yehezkel @ 2014-05-24 14:28 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-kernel; +Cc: Brian Swetland

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>
---
 drivers/staging/android/sync.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index 1f88c5d..18174f7 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();
 
 	/*
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-24 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-24 14:28 [PATCH] staging: android: describe use of memory barrier on sync.c Niv Yehezkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox