From: Christian Borntraeger Date: Tue, 25 Nov 2014 12:17:34 +0000 (+0100) Subject: s390/kvm: REPLACE barrier fixup with READ_ONCE X-Git-Tag: omap-for-v3.20/drop-legacy-3517~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5de72a2247ac05bde7c89039631b3d0c6186fafb;p=pandora-kernel.git 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 Acked-by: Paul E. McKenney --- Reading git-diff-tree failed