From 7530ca21b7a90f11fdb800b754a8925557070028 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 17 Aug 2012 11:52:56 -0400 Subject: [PATCH] ck_fifo: Do not forget about node recycling. --- include/ck_fifo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_fifo.h b/include/ck_fifo.h index 5ba8178..edb2059 100644 --- a/include/ck_fifo.h +++ b/include/ck_fifo.h @@ -144,7 +144,7 @@ ck_fifo_spsc_dequeue(struct ck_fifo_spsc *fifo, void *value) /* If entry is visible, guarantee store to value is visible. */ ck_pr_fence_load(); ck_pr_store_ptr(value, entry->value); - fifo->head = entry; + ck_pr_store_ptr(&fifo->head, entry); return (true); }