From febdb8c16474e41cf9ada9fe99e8dba997bb5d91 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 2 Jan 2014 09:17:10 -0500 Subject: [PATCH] ck_brlock: Use precise barrier for read_unlock. --- include/ck_brlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_brlock.h b/include/ck_brlock.h index dcb760e..70ceacb 100644 --- a/include/ck_brlock.h +++ b/include/ck_brlock.h @@ -271,7 +271,7 @@ CK_CC_INLINE static void ck_brlock_read_unlock(struct ck_brlock_reader *reader) { - ck_pr_fence_load(); + ck_pr_fence_load_store(); ck_pr_store_uint(&reader->n_readers, reader->n_readers - 1); return; }