]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: increment static branch right after limit set
authorGlauber Costa <glommer@parallels.com>
Thu, 7 Feb 2013 01:26:58 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:46 +0000 (16:46 +1100)
commitbeb9e93b7599fd53e187dfca948043e06aca7476
tree16719b29a6b8598f43c754b481dd0554a4a06b63
parent6f8c97f1e13cc6dfcbdfa5559cd350049f171f5b
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