summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorJason Low2015-04-16 01:14:05 +0200
committerLinus Torvalds2015-04-16 01:35:18 +0200
commit9d8c47e4bb1c20dbceee437f9fa7d76dafee80a2 (patch)
treece84c2d3b5f1cff2f1dc583f653f6c9d0f121a46 /mm/memory.c
parentmm/mremap.c: clean up goto just return ERR_PTR (diff)
downloadkernel-qcow2-linux-9d8c47e4bb1c20dbceee437f9fa7d76dafee80a2.tar.gz
kernel-qcow2-linux-9d8c47e4bb1c20dbceee437f9fa7d76dafee80a2.tar.xz
kernel-qcow2-linux-9d8c47e4bb1c20dbceee437f9fa7d76dafee80a2.zip
mm: use READ_ONCE() for non-scalar types
Commit 38c5ce936a08 ("mm/gup: Replace ACCESS_ONCE with READ_ONCE") converted ACCESS_ONCE usage in gup_pmd_range() to READ_ONCE, since ACCESS_ONCE doesn't work reliably on non-scalar types. This patch also fixes the other ACCESS_ONCE usages in gup_pte_range() and __get_user_pages_fast() in mm/gup.c Signed-off-by: Jason Low <jason.low2@hp.com> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Acked-by: Rik van Riel <riel@redhat.com> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions