Re: [PATCH 3.10 277/319] kernel: Provide READ_ONCE and ASSIGN_ONCE

2017-02-06 Thread Willy Tarreau
On Sun, Feb 05, 2017 at 08:21:39PM +0100, Willy Tarreau wrote: > From: Christian Borntraeger > > commit 230fa253df6352af12ad0a16128760b5cb3f92df upstream. Dropped as not needed anymore by the ipc/sem fix. Willy

[PATCH 3.10 277/319] kernel: Provide READ_ONCE and ASSIGN_ONCE

2017-02-05 Thread Willy Tarreau
From: Christian Borntraeger commit 230fa253df6352af12ad0a16128760b5cb3f92df upstream. 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/bug