"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "c9e87a472594fd237b2d19dcbe4a3424297f0b1a"
x86/spinlock: Replace ACCESS_ONCE 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 ) Change the spinlock code to replace ACCESS_ONCE with READ_ONCE. Signed-off-by:Christian Borntraeger <borntraeger@de.ibm.com> Acked-by:
Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Loading
Please register or sign in to comment