]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: increment static branch right after limit set
authorGlauber Costa <glommer@parallels.com>
Sat, 23 Feb 2013 00:34:56 +0000 (16:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Feb 2013 01:50:18 +0000 (17:50 -0800)
commit3183e4c0004dfb1eed163cdfb2b08257b4c2785f
tree91073f62049a9ffe49686cd10d4fd5cb09b26ac7
parentc5e55cb040f03f63fd693c286d9bd4fb297faeb1
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c