Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-25 Thread Michal Hocko
On Tue 24-03-15 11:30:35, Jason Low wrote: > On Tue, 2015-03-24 at 11:30 +0100, Michal Hocko wrote: > > On Mon 23-03-15 15:44:40, Jason Low wrote: > > > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > > > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Jason Low
On Tue, 2015-03-24 at 11:30 +0100, Michal Hocko wrote: > On Mon 23-03-15 15:44:40, Jason Low wrote: > > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > > > This patch removes the rest of the usage

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Jason Low
On Tue, 2015-03-24 at 15:42 +0100, Christian Borntraeger wrote: > Am 23.03.2015 um 23:44 schrieb Jason Low: > > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > > > This patch removes the rest of t

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Christian Borntraeger
Am 23.03.2015 um 23:44 schrieb Jason Low: > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > This patch removes the rest of the usages of ACCESS_ONCE, and use > READ_ONCE for the read accesses. This

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Rik van Riel
On 03/23/2015 06:44 PM, Jason Low wrote: > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > This patch removes the rest of the usages of ACCESS_ONCE, and use > READ_ONCE for the read accesses. This a

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Davidlohr Bueso
On Mon, 2015-03-23 at 15:44 -0700, Jason Low wrote: > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > This patch removes the rest of the usages of ACCESS_ONCE, and use > READ_ONCE for the read acces

Re: [PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-24 Thread Michal Hocko
On Mon 23-03-15 15:44:40, Jason Low wrote: > Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to > READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. > > This patch removes the rest of the usages of ACCESS_ONCE, and use > READ_ONCE for the read accesses. This

[PATCH] mm: Remove usages of ACCESS_ONCE

2015-03-23 Thread Jason Low
Commit 38c5ce936a08 converted ACCESS_ONCE usage in gup_pmd_range() to READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. This patch removes the rest of the usages of ACCESS_ONCE, and use READ_ONCE for the read accesses. This also makes things cleaner, instead of using separate