From 27ed5f78fe0a28bf5a597ab39121a99e69212eb2 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 19 Aug 2012 16:31:20 -0400 Subject: [PATCH] ck_spinlock: Remove unnecessary fence in DEC-based spinlock. --- include/ck_spinlock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/ck_spinlock.h b/include/ck_spinlock.h index b14e396..2d15a20 100644 --- a/include/ck_spinlock.h +++ b/include/ck_spinlock.h @@ -347,7 +347,6 @@ ck_spinlock_dec_lock(struct ck_spinlock_dec *lock) * UINT_MAX lock requests can happen while the lock is held. */ ck_pr_dec_uint_zero(&lock->value, &r); - ck_pr_fence_store(); if (r == true) break;