]> git.baikalelectronics.ru Git - kernel.git/commit
mm: vm_page_prot: update with WRITE_ONCE/READ_ONCE
authorAndrea Arcangeli <aarcange@redhat.com>
Sat, 8 Oct 2016 00:01:22 +0000 (17:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:29 +0000 (18:46 -0700)
commit8dca4b4d81f45e06e09a37629958039cc84a9857
tree598cc5a8d764aa497570b359fc1328be5fa105cc
parent205e788013a7ac4a0f1a823ea1ab6c5cc98cc41b
mm: vm_page_prot: update with WRITE_ONCE/READ_ONCE

vma->vm_page_prot is read lockless from the rmap_walk, it may be updated
concurrently and this prevents the risk of reading intermediate values.

Link: http://lkml.kernel.org/r/1474660305-19222-1-git-send-email-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Jan Vorlicek <janvorli@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/huge_memory.c
mm/migrate.c
mm/mmap.c
mm/mprotect.c