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)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:40 +0000 (09:09 -0700)
commit6d51e762b1b58226ddaf922673970162e71c9ed9
tree25231ef1d676fab8edfeb091daeb6354921c42f8
parenta0f07aae54e87a9fad6d19c0e57398f54d858f06
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