From 7a99585f9e08e0b8a80880db9055895bda3a80a3 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 12 Oct 2012 11:05:33 -0400 Subject: [PATCH] ck_ring: No need for volatile load on dequeue_spmc. --- include/ck_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_ring.h b/include/ck_ring.h index f030cc7..0e205bc 100644 --- a/include/ck_ring.h +++ b/include/ck_ring.h @@ -295,7 +295,7 @@ ck_ring_dequeue_spmc(struct ck_ring *ring, void *data) return false; ck_pr_fence_load(); - r = ck_pr_load_ptr(&ring->ring[consumer & ring->mask]); + r = ring->ring[consumer & ring->mask]; /* Serialize load with respect to head update. */ ck_pr_fence_memory();