From: Mathieu Desnoyers Date: Sun, 20 Sep 2009 16:03:37 +0000 (-0400) Subject: urcu-defer: remove unnecessary memory barrier X-Git-Tag: v0.1~60 X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=9374f873bd741e91b0b5c78a8e0406d849ca752e;hp=9374f873bd741e91b0b5c78a8e0406d849ca752e urcu-defer: remove unnecessary memory barrier All synchronization between queue producer/consumer is performed by the write to "head". Before this write, none of the queued data is visible from the consumer point of view. Therefore, just a single wmb() is required before writing to head to ensure correct synchronization. This matches with the rmb() after reading head on the consumer side. Signed-off-by: Mathieu Desnoyers ---