diff options
| author | Zefan Li <[email protected]> | 2015-02-13 03:19:49 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2015-03-02 16:55:04 +0000 |
| commit | 790317e1b266c776765a4bdcedefea706ff0fada (patch) | |
| tree | da14cf2e66b50ab59631292ba306e13fcc0f73e4 /net/switchdev/switchdev.c | |
| parent | Linux 4.0-rc1 (diff) | |
| download | kernel-790317e1b266c776765a4bdcedefea706ff0fada.tar.gz kernel-790317e1b266c776765a4bdcedefea706ff0fada.zip | |
cpuset: initialize effective masks when clone_children is enabled
If clone_children is enabled, effective masks won't be initialized
due to the bug:
# mount -t cgroup -o cpuset xxx /mnt
# echo 1 > cgroup.clone_children
# mkdir /mnt/tmp
# cat /mnt/tmp/
# cat cpuset.effective_cpus
# cat cpuset.cpus
0-15
And then this cpuset won't constrain the tasks in it.
Either the bug or the fix has no effect on unified hierarchy, as
there's no clone_chidren flag there any more.
Reported-by: Christian Brauner <[email protected]>
Reported-by: Serge Hallyn <[email protected]>
Cc: <[email protected]> # 3.17+
Signed-off-by: Zefan Li <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Tested-by: Serge Hallyn <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
