]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cgroups: use hierarchy_mutex in memory controller
authorPaul Menage <menage@google.com>
Thu, 8 Jan 2009 02:08:37 +0000 (18:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 Jan 2009 16:31:10 +0000 (08:31 -0800)
commit2cb378c862777d050c20db903b119a029845fdcb
tree5512511acf9d66338039f9698e456f1e3254970b
parent999cd8a450f8f93701669a61cac4d3b19eca07e8
cgroups: use hierarchy_mutex in memory controller

Update the memory controller to use its hierarchy_mutex rather than
calling cgroup_lock() to protected against cgroup_mkdir()/cgroup_rmdir()
from occurring in its hierarchy.

Signed-off-by: Paul Menage <menage@google.com>
Tested-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c