From: Alex Elder Date: Wed, 6 Feb 2013 05:41:50 +0000 (-0600) Subject: rbd: add barriers near done flag operations X-Git-Tag: v3.9-rc1~41^2~21^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077413082f9ade9ca4d9774dbdc81ee7256d8089;p=pandora-kernel.git rbd: add barriers near done flag operations Somehow, I missed this little item in Documentation/atomic_ops.txt: *** WARNING: atomic_read() and atomic_set() DO NOT IMPLY BARRIERS! *** Create and use some helper functions that include the proper memory barriers for manipulating the done field. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed