summaryrefslogtreecommitdiffstats
path: root/mm/debug.c
diff options
context:
space:
mode:
authorAndrea Arcangeli2019-05-15 00:40:50 +0200
committerLinus Torvalds2019-05-15 04:52:47 +0200
commit987717e5e016a0dd3011d3bb16546672713f94e2 (patch)
treefa83028052001ed851507f8a42b241ba45212b20 /mm/debug.c
parentuserfaultfd: use RCU to free the task struct when fork fails (diff)
downloadkernel-qcow2-linux-987717e5e016a0dd3011d3bb16546672713f94e2.tar.gz
kernel-qcow2-linux-987717e5e016a0dd3011d3bb16546672713f94e2.tar.xz
kernel-qcow2-linux-987717e5e016a0dd3011d3bb16546672713f94e2.zip
mm: change mm_update_next_owner() to update mm->owner with WRITE_ONCE
The RCU reader uses rcu_dereference() inside rcu_read_lock critical sections, so the writer shall use WRITE_ONCE. Just a cleanup, we still rely on gcc to emit atomic writes in other places. Link: http://lkml.kernel.org/r/20190325225636.11635-3-aarcange@redhat.com Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Hugh Dickins <hughd@google.com> Cc: Jann Horn <jannh@google.com> Cc: Jason Gunthorpe <jgg@mellanox.com> Cc: "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Xu <peterx@redhat.com> Cc: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions