diff options
author | 2024-05-15 10:47:54 +0800 | |
---|---|---|
committer | 2024-07-03 19:29:53 -0700 | |
commit | 7f83bf14603ef41a44dc907594d749a283e22c37 (patch) | |
tree | 8052059521b936b6f0d350ff8e930967ea8ae65a /mm/vmscan.c | |
parent | mm: shmem: use folio_alloc_mpol() in shmem_alloc_folio() (diff) | |
download | wireguard-linux-7f83bf14603ef41a44dc907594d749a283e22c37.tar.xz wireguard-linux-7f83bf14603ef41a44dc907594d749a283e22c37.zip |
mm/huge_memory: mark racy access onhuge_anon_orders_always
huge_anon_orders_always is accessed lockless, it is better to use the
READ_ONCE() wrapper. This is not fixing any visible bug, hopefully this
can cease some KCSAN complains in the future. Also do that for
huge_anon_orders_madvise.
Link: https://lkml.kernel.org/r/20240515104754889HqrahFPePOIE1UlANHVAh@zte.com.cn
Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Lu Zhongjun <lu.zhongjun@zte.com.cn>
Reviewed-by: xu xin <xu.xin16@zte.com.cn>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions