]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpuset: make sure new tasks conform to the current config of the cpuset
authorZefan Li <lizefan@huawei.com>
Tue, 9 Aug 2016 03:25:01 +0000 (11:25 +0800)
committerSasha Levin <alexander.levin@verizon.com>
Mon, 12 Sep 2016 13:30:26 +0000 (09:30 -0400)
commit24628b51d97ff55e9a39ed87ea631af29604112f
treeaf3b780d410644580306fc4b4c6157b7842e16ab
parent214b2dab8107b130deeabec6db8d18439a64e738
cpuset: make sure new tasks conform to the current config of the cpuset

[ Upstream commit 06f4e94898918bcad00cdd4d349313a439d6911e ]

A new task inherits cpus_allowed and mems_allowed masks from its parent,
but if someone changes cpuset's config by writing to cpuset.cpus/cpuset.mems
before this new task is inserted into the cgroup's task list, the new task
won't be updated accordingly.

Signed-off-by: Zefan Li <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
kernel/cpuset.c