From a7f51fffca284e219330e542a0b2bc63e8c0e35e Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 17 Aug 2012 11:28:53 -0400 Subject: [PATCH] ck_hp_fifo: Serialize second CAS. --- include/ck_hp_fifo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ck_hp_fifo.h b/include/ck_hp_fifo.h index 73b77bf..97d34b0 100644 --- a/include/ck_hp_fifo.h +++ b/include/ck_hp_fifo.h @@ -93,6 +93,7 @@ ck_hp_fifo_enqueue_mpmc(ck_hp_record_t *record, break; } + ck_pr_fence_store(); ck_pr_cas_ptr(&fifo->tail, tail, entry); return; } @@ -122,6 +123,7 @@ ck_hp_fifo_tryenqueue_mpmc(ck_hp_record_t *record, } else if (ck_pr_cas_ptr(&fifo->tail->next, next, entry) == false) return false; + ck_pr_fence_store(); ck_pr_cas_ptr(&fifo->tail, tail, entry); return true; }