aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorLi Zefan <[email protected]>2013-07-08 16:00:33 -0700
committerLinus Torvalds <[email protected]>2013-07-09 10:33:24 -0700
commit10d5ebf40ff09db03b97cb177f24b9c7c8b4bb52 (patch)
tree659b3431157e052d6ab77c7c6c2951e6ab68d82f /tools/perf/scripts/python/netdev-times.py
parent20f05310ba62d5816fb339d08effe78683137197 (diff)
memcg: use css_get/put when charging/uncharging kmem
Use css_get/put instead of mem_cgroup_get/put. We can't do a simple replacement, because here mem_cgroup_put() is called during mem_cgroup_css_free(), while mem_cgroup_css_free() won't be called until css refcnt goes down to 0. Instead we increment css refcnt in mem_cgroup_css_offline(), and then check if there's still kmem charges. If not, css refcnt will be decremented immediately, otherwise the refcnt will be released after the last kmem allocation is uncahred. [[email protected]: tweak comment] Signed-off-by: Li Zefan <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Reviewed-by: Tejun Heo <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Glauber Costa <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions