]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: add cgroup_subsys->free() method and use it to fix pids controller
authorTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 20:41:53 +0000 (16:41 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 20:41:53 +0000 (16:41 -0400)
commiteab100b8f8363b8b7bb7e7be0e2ab2d38549763d
tree6b8b8ccc4a99cfc7e156765c58ab285034980995
parenta4e5bca64543d957f3d550da3741918a2990f7ae
cgroup: add cgroup_subsys->free() method and use it to fix pids controller

pids controller is completely broken in that it uncharges when a task
exits allowing zombies to escape resource control.  With the recent
updates, cgroup core now maintains cgroup association till task free
and pids controller can be fixed by uncharging on free instead of
exit.

This patch adds cgroup_subsys->free() method and update pids
controller to use it instead of ->exit() for uncharging.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Aleksa Sarai <cyphar@cyphar.com>
Documentation/cgroups/cgroups.txt
include/linux/cgroup-defs.h
kernel/cgroup.c
kernel/cgroup_pids.c