summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-07-08 16:00:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 10:33:24 -0700
commit465939a1fa283cf2a5194362c5accf4429c99c42 (patch)
tree5ef779db1f628b738001e44cad6955991cb06a0b /samples
parente0743e6bc5b7587dd0bfa902d67d3f81ef3f6618 (diff)
downloadlinux-465939a1fa283cf2a5194362c5accf4429c99c42.tar.gz
linux-465939a1fa283cf2a5194362c5accf4429c99c42.tar.bz2
linux-465939a1fa283cf2a5194362c5accf4429c99c42.zip
memcg: don't need to free memcg via RCU or workqueue
Now memcg has the same life cycle with its corresponding cgroup, and a cgroup is freed via RCU and then mem_cgroup_css_free() will be called in a work function, so we can simply call __mem_cgroup_free() in mem_cgroup_css_free(). This actually reverts commit 59927fb984d ("memcg: free mem_cgroup by RCU to fix oops"). Signed-off-by: Li Zefan <lizefan@huawei.com> Cc: Hugh Dickins <hughd@google.com> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Tejun Heo <tj@kernel.org> Cc: Glauber Costa <glommer@openvz.org> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions