]> git.karo-electronics.de Git - linux-beck.git/commit
Drivers: hv: vmbus: Use READ_ONCE() to read variables that are volatile
authorK. Y. Srinivasan <kys@microsoft.com>
Sun, 3 Apr 2016 00:59:47 +0000 (17:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 21:00:19 +0000 (14:00 -0700)
commitd45faaeedb762a3965a0246cf831e55045dd6ef8
treed33ec75e96196b925c1ba72933f5e73016c73ddb
parenta6341f000024cdf1ec14dc26743a409a17378db5
Drivers: hv: vmbus: Use READ_ONCE() to read variables that are volatile

Use the READ_ONCE macro to access variabes that can change asynchronously.
This is the recommended mechanism for dealing with "unsafe" compiler
optimizations.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/ring_buffer.c