OSDN Git Service

cgroup: Explicitly remove core interface files
authorTejun Heo <tj@kernel.org>
Thu, 26 Apr 2018 21:29:04 +0000 (14:29 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 26 Apr 2018 21:29:04 +0000 (14:29 -0700)
commit5faaf05f2976fd9ec0ecd582bcfb3a41cde4c65e
tree85c27210cddbf635eb8ae4ed6a94825826710c9d
parentfe03a7594d86e0754f05e604cd803a6a9aae3c1c
cgroup: Explicitly remove core interface files

The "cgroup." core interface files bypass the usual interface removal
path and get removed recursively along with the cgroup itself.  While
this works now, the subtle discrepancy gets in the way of implementing
common mechanisms.

This patch updates cgroup core interface file handling so that it's
consistent with controller interface files.  When added, the css is
marked CSS_VISIBLE and they're explicitly removed before the cgroup is
destroyed.

This doesn't cause user-visible behavior changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c