aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2022-04-28 23:16:08 -0700
committerakpm <[email protected]>2022-04-28 23:16:08 -0700
commit4cd614841c06338a087769ee3cfa96718784d1f5 (patch)
treeee09e7c06e2513b977739324f12cc9ee7d88f263 /tools/perf/scripts/python/flamegraph.py
parent3f26c88bd66cd8ab1731763c68df7fe23a7671c0 (diff)
mm/migration: fix possible do_pages_stat_array racing with memory offline
When follow_page peeks a page, the page could be migrated and then be offlined while it's still being used by the do_pages_stat_array(). Use FOLL_GET to hold the page refcnt to fix this potential race. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Acked-by: "Huang, Ying" <[email protected]> Reviewed-by: Muchun Song <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Baolin Wang <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions