aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2021-06-28 19:37:50 -0700
committerLinus Torvalds <[email protected]>2021-06-29 10:53:50 -0700
commit2884b6b7eed4fc14c0630fb16e56a4c66c786d33 (patch)
tree7630515fb322a45d6806903ec2a1ea22ccbc6899 /tools/perf/scripts/python/bin
parent8dc87c7d1fec8851925ca96ade0d65d3dcf89cce (diff)
mm: memcontrol: bail out early when !mm in get_mem_cgroup_from_mm
When mm is NULL, we do not need to hold rcu lock and call css_tryget for the root memcg. And we also do not need to check !mm in every loop of while. So bail out early when !mm. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muchun Song <[email protected]> Acked-by: Johannes Weiner <[email protected]> Reviewed-by: Shakeel Butt <[email protected]> Acked-by: Roman Gushchin <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Vladimir Davydov <[email protected]> Cc: Xiongchun Duan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions