summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorDavid Rientjes2013-07-04 00:01:23 +0200
committerLinus Torvalds2013-07-04 01:07:26 +0200
commitffbdccf5e1facd18b54429a749667fb185c10f20 (patch)
treeb3c8cf7399bb6493568d02bce307dce45b4ea9d7 /mm/page_io.c
parentpagemap: prepare to reuse constant bits with page-shift (diff)
downloadkernel-qcow2-linux-ffbdccf5e1facd18b54429a749667fb185c10f20.tar.gz
kernel-qcow2-linux-ffbdccf5e1facd18b54429a749667fb185c10f20.tar.xz
kernel-qcow2-linux-ffbdccf5e1facd18b54429a749667fb185c10f20.zip
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 <rientjes@google.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions