cgroup: Set CGRP_RELEASABLE when adding to a cgroup
authorColin Cross <ccross@android.com>
Mon, 16 Apr 2012 06:57:38 +0000 (11:57 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Apr 2012 09:45:48 +0000 (14:45 +0530)
commita1f9a491b8300e5dcffbd107486bbed85f8c6675
tree6ab6b8ae2d018c121618a875bbace56b759782f6
parent2e1cedd9ded5601a355e9c51b514c7462f8ed3fc
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>

Conflicts:

kernel/cgroup.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
kernel/cgroup.c