aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorlinke li <lilinke99@qq.com>2024-03-21 11:48:15 +0800
committerVlastimil Babka <vbabka@suse.cz>2024-03-25 09:45:28 +0100
commit87654cf7a9865c0be256d67229b7354125d7498e (patch)
treeb5413ac2efb4a09d3cd29946afe35863fcdad6c8 /fs
parentad7c5ebead13323ac4a45e01bda0609629523076 (diff)
mm/slub: mark racy accesses on slab->slabs
The reads of slab->slabs are racy because it may be changed by put_cpu_partial concurrently. In slabs_cpu_partial_show() and show_slab_objects(), slab->slabs is only used for showing information. Data-racy reads from shared variables that are used only for diagnostic purposes should typically use data_race(), since it is normally not a problem if the values are off by a little. This patch is aimed at reducing the number of benign races reported by KCSAN in order to focus future debugging effort on harmful races. Signed-off-by: linke li <lilinke99@qq.com> Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions