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>
Sat, 18 Dec 2010 01:01:49 +0000 (17:01 -0800)
commit60cdbd1f3397f12b563cfc83055d443409c609eb
treed86bb3e709be07b248dfe622753d7f01aa14bc39
parenta05f03bf6ece7619877d6b3ccfbc7597f6df7b40
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