]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cgroups: allow subsystems to cancel a fork
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 16 Nov 2011 23:41:39 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 29 Nov 2011 03:45:03 +0000 (14:45 +1100)
commitc457214e42ced324897e121eccb0a805a37c8bcd
tree441e814f8e11aa1ce8f976f26d68e0c993d5bdb2
parent878771bcc5525eb422560d9487f95e0d16639130
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@linux-foundation.org>
include/linux/cgroup.h
kernel/cgroup.c
kernel/cgroup_freezer.c
kernel/exit.c
kernel/fork.c