summaryrefslogtreecommitdiffstats
path: root/lib/lmb.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-11-12 22:26:50 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-13 02:17:16 +0100
commit3b1b3f6e57064aa8f91c290fe51cda4c74642902 (patch)
tree2cf60a7bae5f184acbea4bff859be4e4132f9794 /lib/lmb.c
parentfreezer_cg: remove task_lock from freezer_fork() (diff)
downloadlinux-3b1b3f6e57064aa8f91c290fe51cda4c74642902.tar.xz
linux-3b1b3f6e57064aa8f91c290fe51cda4c74642902.zip
freezer_cg: disable writing freezer.state of root cgroup
With this change, control file 'freezer.state' doesn't exist in root cgroup, making root cgroup unfreezable. I think it's reasonable to disallow freeze tasks in the root cgroup. And then we can avoid fork overhead when freezer subsystem is compiled but not used. Also make writing invalid value to freezer.state returns EINVAL rather than EIO. This is more consistent with other cgroup subsystem. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Paul Menage <menage@google.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Paul Menage <menage@google.com> Cc: Matt Helsley <matthltc@us.ibm.com> Cc: "Serge E. Hallyn" <serue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/lmb.c')
0 files changed, 0 insertions, 0 deletions