diff options
author | Zefan Li <lizefan@huawei.com> | 2015-02-13 04:20:30 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-03-02 17:55:04 +0100 |
commit | 79063bffc81f82689bd90e16da1b49408f3bf095 (patch) | |
tree | f8bff040291a19286df85e9cd60a7648723f20c4 /kernel/fork.c | |
parent | cpuset: initialize effective masks when clone_children is enabled (diff) | |
download | linux-79063bffc81f82689bd90e16da1b49408f3bf095.tar.xz linux-79063bffc81f82689bd90e16da1b49408f3bf095.zip |
cpuset: fix a warning when clearing configured masks in old hierarchy
When we clear cpuset.cpus, cpuset.effective_cpus won't be cleared:
# mount -t cgroup -o cpuset xxx /mnt
# mkdir /mnt/tmp
# echo 0 > /mnt/tmp/cpuset.cpus
# echo > /mnt/tmp/cpuset.cpus
# cat cpuset.cpus
# cat cpuset.effective_cpus
0-15
And a kernel warning in update_cpumasks_hier() is triggered:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4028 at kernel/cpuset.c:894 update_cpumasks_hier+0x471/0x650()
Cc: <stable@vger.kernel.org> # 3.17+
Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Tested-by: Serge Hallyn <serge.hallyn@canonical.com>
Diffstat (limited to 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions