From: David Rientjes Date: Wed, 3 Jul 2013 22:01:23 +0000 (-0700) Subject: mm, memcg: don't take task_lock in task_in_mem_cgroup X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~409 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffbdccf5e1facd18b54429a749667fb185c10f20;p=pandora-kernel.git 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 Cc: KAMEZAWA Hiroyuki Cc: Johannes Weiner Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed