]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroups: allow subsystems to cancel a fork
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 5 Oct 2011 00:43:48 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 06:07:02 +0000 (17:07 +1100)
commit1d870b1ca80c3568d79d5e9df496d503bc351d91
tree8205222fc3a7b852950b9009900a86cacad95e00
parent65eac67005404199eb6d8323fb62cccae2e1415d
cgroups: allow subsystems to cancel a fork

Let the subsystem's fork callback return an error value so that they can
cancel a fork.  This is going to be used by the task counter subsystem to
implement the limit.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Menage <paul@paulmenage.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Aditya Kali <adityakali@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Tim Hockin <thockin@hockin.org>
Cc: Tejun Heo <htejun@gmail.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@google.com>
include/linux/cgroup.h
kernel/cgroup.c
kernel/cgroup_freezer.c
kernel/exit.c
kernel/fork.c