From 7d6626131d34a6ad18cf58ae58131c51acd2495c Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 18 Jul 2012 15:32:37 -0400 Subject: [PATCH] ck_hp_fifo: Forgot load fence in last commit. --- 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 45a7944..73b77bf 100644 --- a/include/ck_hp_fifo.h +++ b/include/ck_hp_fifo.h @@ -135,6 +135,7 @@ ck_hp_fifo_dequeue_mpmc(ck_hp_record_t *record, for (;;) { head = ck_pr_load_ptr(&fifo->head); + ck_pr_fence_load(); tail = ck_pr_load_ptr(&fifo->tail); ck_hp_set(record, 0, head); ck_pr_fence_memory(); @@ -169,6 +170,7 @@ ck_hp_fifo_trydequeue_mpmc(ck_hp_record_t *record, struct ck_hp_fifo_entry *head, *tail, *next; head = ck_pr_load_ptr(&fifo->head); + ck_pr_fence_load(); tail = ck_pr_load_ptr(&fifo->tail); ck_hp_set(record, 0, head); ck_pr_fence_memory();