This commit replaces full barriers by targeted use of load-acquire and
store-release.
Signed-off-by: Paul E. McKenney <[email protected]>
[ paulmck: Restore comments as suggested by David Howells. ]
The code sample in Documentation/circular-buffers.txt appears to have a
few ordering bugs. This patch therefore applies the needed fixes.
Reported-by: Lech Fomicki <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>