staging: android: describe use of memory barrier on sync.c
PATCH 1/1 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 <[email protected]>
--- drivers/staging/android/sync.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/staging/android/sync.c +4 -0
@@ -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 ();/*
Signature · 1 line
1.7.10.4