diff options
| author | David Rientjes <[email protected]> | 2013-07-03 15:01:23 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-03 16:07:26 -0700 |
| commit | ffbdccf5e1facd18b54429a749667fb185c10f20 (patch) | |
| tree | b3c8cf7399bb6493568d02bce307dce45b4ea9d7 /tools/perf/scripts/python/bin | |
| parent | 541c237c0923f567c9c4cabb8a81635baadc713f (diff) | |
mm, memcg: don't take task_lock in task_in_mem_cgroup
For processes that have detached their mm's, task_in_mem_cgroup()
unnecessarily takes task_lock() when rcu_read_lock() is all that is
necessary to call mem_cgroup_from_task().
While we're here, switch task_in_mem_cgroup() to return bool.
Signed-off-by: David Rientjes <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[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