From 4e7c6ee2702911d9cb286b06ae116db9876de418 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 12 Aug 2011 22:36:34 -0400 Subject: [PATCH] Add full barrier for anderson spinlock. --- include/ck_spinlock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ck_spinlock.h b/include/ck_spinlock.h index b198961..3955068 100644 --- a/include/ck_spinlock.h +++ b/include/ck_spinlock.h @@ -137,6 +137,8 @@ ck_spinlock_anderson_unlock(struct ck_spinlock_anderson *lock, { unsigned int position; + ck_pr_fence_memory(); + /* Mark next slot as available. */ if (lock->wrap == 0) position = (slot->position + 1) & lock->mask;