]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: circular-buffers: use READ_ONCE()
authorMark Rutland <mark.rutland@arm.com>
Wed, 16 Nov 2016 11:12:49 +0000 (11:12 +0000)
committerJonathan Corbet <corbet@lwn.net>
Wed, 16 Nov 2016 23:17:45 +0000 (16:17 -0700)
commit52c5c690721cef0792a6114276c5417cbcdb0cb1
treedae5c8e97588062dea746543ba66cb7917b9b78e
parent691078db6555438a9dd0e9a3d561da6fffc8249e
Documentation: circular-buffers: use READ_ONCE()

While the {READ,WRITE}_ONCE() macros should be used in preference to
ACCESS_ONCE(), the circular buffer documentation uses the latter
exclusively.

To point people in the right direction, and as a step towards the
eventual removal of ACCESS_ONCE(), update the documentation to use
READ_ONCE(), as ACCESS_ONCE() is only used in a reader context in the
circular buffer documentation.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/circular-buffers.txt