]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: increment static branch right after limit set
authorGlauber Costa <glommer@parallels.com>
Wed, 20 Feb 2013 02:14:47 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:51 +0000 (16:52 +1100)
commit2a32a7aea24f9df3126ca9af8bfb9dd687ac78b5
tree553ae8b26299ce79307f374f68363b2b214f5ef0
parent3ad3673d1d673b70874f572d7ac8161774d5222c
memcg: increment static branch right after limit set

We were deferring the kmemcg static branch increment to a later time, due
to a nasty dependency between the cpu_hotplug lock, taken by the jump
label update, and the cgroup_lock.

Now we no longer take the cgroup lock, and we can save ourselves the
trouble.

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