s390/kvm: REPLACE barrier fixup with READ_ONCE
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 25 Nov 2014 12:17:34 +0000 (13:17 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 18 Dec 2014 08:54:41 +0000 (09:54 +0100)
commit5de72a2247ac05bde7c89039631b3d0c6186fafb
tree8ba7addcad7793f8e5ce0034c7f0a41a9039e222
parent488beef1440e845751365202faace2465840ea98
s390/kvm: REPLACE barrier fixup with READ_ONCE

ACCESS_ONCE does not work reliably on non-scalar types. For
example gcc 4.6 and 4.7 might remove the volatile tag for such
accesses during the SRA (scalar replacement of aggregates) step
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145)

Commit 1365039d0cb3 ("KVM: s390: Fix ipte locking") replace
ACCESS_ONCE with barriers. Lets use READ_ONCE instead.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
arch/s390/kvm/gaccess.c