From b32e1b24df423c9b8eb79857839282f072a1b4be Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 18 Dec 2013 02:07:47 -0500 Subject: [PATCH] ck_spinlock: Use more finely-grained barrier for CLH. --- include/spinlock/clh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spinlock/clh.h b/include/spinlock/clh.h index fc72bef..b76e413 100644 --- a/include/spinlock/clh.h +++ b/include/spinlock/clh.h @@ -71,7 +71,7 @@ ck_spinlock_clh_lock(struct ck_spinlock_clh **queue, struct ck_spinlock_clh *thr /* Indicate to the next thread on queue that they will have to block. */ thread->wait = true; - ck_pr_fence_store(); + ck_pr_fence_store_atomic(); /* Mark current request as last request. Save reference to previous request. */ previous = ck_pr_fas_ptr(queue, thread);