summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/caching
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2017-07-23 08:18:26 -0400
committerTejun Heo <tj@kernel.org>2017-07-25 13:15:29 -0400
commit918a8c2c4ea4fab8b7855b8da48bbaf0a733ebb0 (patch)
tree55b740ec2319dc2a358e86a6b0323a6a71786a5c /Documentation/filesystems/caching
parent7a0cf0e74ab6cfd8e561f5f12860d4ff8844905a (diff)
downloadop-kernel-dev-918a8c2c4ea4fab8b7855b8da48bbaf0a733ebb0.zip
op-kernel-dev-918a8c2c4ea4fab8b7855b8da48bbaf0a733ebb0.tar.gz
cgroup: remove unnecessary empty check when enabling threaded mode
cgroup_enable_threaded() checks that the cgroup doesn't have any tasks or children and fails the operation if so. This test is unnecessary because the first part is already checked by cgroup_can_be_thread_root() and the latter is unnecessary. The latter actually cause a behavioral oddity. Please consider the following hierarchy. All cgroups are domains. A / \ B C \ D If B is made threaded, C and D becomes invalid domains. Due to the no children restriction, threaded mode can't be enabled on C. For C and D, the only thing the user can do is removal. There is no reason for this restriction. Remove it. Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'Documentation/filesystems/caching')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud