cgroup: Set CGRP_RELEASABLE when adding to a cgroup
authorColin Cross <ccross@android.com>
Wed, 24 Nov 2010 05:37:03 +0000 (21:37 -0800)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:06:31 +0000 (12:06 -0800)
commit1c669f97775c00b6ca277b1d343578497aebbc60
tree3de144d2c9a8bb7ba6bff5182cfe84a4ee094b14
parentebe0533c50818b0f1d5683f87be2ecdc65bae40e
cgroup: Set CGRP_RELEASABLE when adding to a cgroup

Changes the meaning of CGRP_RELEASABLE to be set on any cgroup
that has ever had a task or cgroup in it, or had css_get called
on it.  The bit is set in cgroup_attach_task, cgroup_create,
and __css_get.  It is not necessary to set the bit in
cgroup_fork, as the task is either in the root cgroup, in
which can never be released, or the task it was forked from
already set the bit in croup_attach_task.

Signed-off-by: Colin Cross <ccross@android.com>
include/linux/cgroup.h
kernel/cgroup.c