aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2022-06-08 22:40:30 +0800
committerakpm <[email protected]>2022-07-03 18:08:42 -0700
commitc8945306976f497802b208cf8f2cad4543868bc6 (patch)
tree52be9312a6af5bfc3e1688252c5247060ac89abe /tools/perf/scripts/python/export-to-sqlite.py
parent5e21f2d577cf174ced5fe9bdff67dcb70190d9f8 (diff)
mm/swapfile: fix possible data races of inuse_pages
si->inuse_pages could still be accessed concurrently now. The plain reads outside si->lock critical section, i.e. swap_show and si_swapinfo, which results in data races. READ_ONCE and WRITE_ONCE is used to fix such data races. Note these data races should be ok because they're just used for showing swap info. [[email protected]: use WRITE_ONCE to pair with READ_ONCE] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: "Huang, Ying" <[email protected]> Cc: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions