summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>2009-01-29 23:25:11 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-30 03:04:43 +0100
commit7bcc1bb1232de6efc0b85e0c7fe38e90b2436318 (patch)
tree3952a706885f4c57217f4196f055a7c16d0af80b /drivers/gpio
parentcgroups: use hierarchy mutex in creation failure path (diff)
downloadlinux-7bcc1bb1232de6efc0b85e0c7fe38e90b2436318.tar.xz
linux-7bcc1bb1232de6efc0b85e0c7fe38e90b2436318.zip
memcg: get/put parents at create/free
The lifetime of struct cgroup and struct mem_cgroup is different and mem_cgroup has its own reference count for handling references from swap_cgroup. This causes strange problem that the parent mem_cgroup dies while child mem_cgroup alive, and this problem causes a bug in case of use_hierarchy==1 because res_counter_uncharge climbs up the tree. This patch is for avoiding it by getting the parent at create, and putting it at freeing. Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Reviewed-by; KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: Li Zefan <lizf@cn.fujitsu.com> Cc: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions