]> asedeno.scripts.mit.edu Git - linux.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)
committerTejun Heo <tj@kernel.org>
Wed, 10 Aug 2016 03:58:01 +0000 (23:58 -0400)
commit06f4e94898918bcad00cdd4d349313a439d6911e
tree97b4df37033e4270034314832dba77739b21a92f
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
cpuset: make sure new tasks conform to the current config of the cpuset

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
kernel/cpuset.c