diff options
author | 2024-09-05 23:31:18 +0800 | |
---|---|---|
committer | 2024-09-09 16:39:14 -0700 | |
commit | 46dcc7c92e63879a49cfbd99949858df0335a122 (patch) | |
tree | 420fad5ba5967f8ef7228b2978c0b72f79dc19dd /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mm/damon/tests/core-kunit: skip damon_test_nr_accesses_to_accesses_bp() if aggr_interval is zero (diff) | |
download | wireguard-linux-46dcc7c92e63879a49cfbd99949858df0335a122.tar.xz wireguard-linux-46dcc7c92e63879a49cfbd99949858df0335a122.zip |
mm: migrate: simplify find_mm_struct()
Use find_get_task_by_vpid() to replace the task_struct find logic in
find_mm_struct(), note that this patch move the ptrace_may_access() call
out from rcu_read_lock() scope, this is ok because it actually does not
need it, find_get_task_by_vpid() already get the pid and task safely,
ptrace_may_access() can use the task safely, like what
sched_core_share_pid() similarly do.
Link: https://lkml.kernel.org/r/20240905153118.1205173-1-sunnanyong@huawei.com
Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions