From f3111b006ba19bf033f461862498c8107adceb00 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 25 Sep 2012 23:51:56 -0400 Subject: [PATCH] ck_fifo: SPSC FIFO dequeue only requires load depends barrier. --- include/ck_fifo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ck_fifo.h b/include/ck_fifo.h index 707bc1e..d8de287 100644 --- a/include/ck_fifo.h +++ b/include/ck_fifo.h @@ -142,9 +142,8 @@ ck_fifo_spsc_dequeue(struct ck_fifo_spsc *fifo, void *value) return (false); /* If entry is visible, guarantee store to value is visible. */ - ck_pr_fence_load(); + ck_pr_fence_load_depends(); ck_pr_store_ptr(value, entry->value); - ck_pr_fence_store(); ck_pr_store_ptr(&fifo->head, entry); return (true);