]> git.baikalelectronics.ru Git - kernel.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)
commit6c9fc069e9bac103c869bea7f97a4b942e756f73
tree97b4df37033e4270034314832dba77739b21a92f
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
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