cmap: Fix memory ordering for counter_changed().
authorBen Pfaff <blp@nicira.com>
Wed, 21 May 2014 14:43:10 +0000 (07:43 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 21 May 2014 23:41:45 +0000 (16:41 -0700)
commit34a0d77840ab9d60367f017b9580546e78fd9dfb
tree3d20c7c3987c1d4819f8bb2130414a9fd1071cc9
parentd08d51b9c46e021856ec9e4aea2373e9f9b62dd2
cmap: Fix memory ordering for counter_changed().

Release memory ordering only affects visibility of stores, and is not
allowed on a memory read.  Some compilers enforce this, making this code
fail to compile.

Reported-by: Alex Wang <alexw@nicira.com>
Reported-by: Kmindg G <kmindg@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/cmap.c