]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: replace cgroup_lock with memcg specific memcg_lock
authorGlauber Costa <glommer@parallels.com>
Wed, 20 Feb 2013 02:14:46 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:50 +0000 (16:52 +1100)
commit1833a2f5508de7aa5fea50c59ef969dd6bfa6678
tree1a44d67278cf0c0a524cb16a1aac8afe60ca5533
parente42b5369142a30183a4bdc173acbdc1b123a63a3
memcg: replace cgroup_lock with memcg specific memcg_lock

After the preparation work done in earlier patches, the cgroup_lock can be
trivially replaced with a memcg-specific lock.  This is an automatic
translation at every site where the values involved were queried.

The sites where values are written, however, used to be naturally called
under cgroup_lock.  This is the case for instance in the css_online
callback.  For those, we now need to explicitly add the memcg lock.

With this, all the calls to cgroup_lock outside cgroup core are gone.

Signed-off-by: Glauber Costa <glommer@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Tejun Heo <tj@kernel.org>
Cc: Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c