]> git.baikalelectronics.ru Git - kernel.git/commit
cpuset: Fix the bug that subpart_cpus updated wrongly in update_cpumask()
authorTianchen Ding <dtcccc@linux.alibaba.com>
Tue, 18 Jan 2022 10:05:18 +0000 (18:05 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jan 2022 16:49:30 +0000 (06:49 -1000)
commitb8184b9cb7278dbb6bec2fb74372174fb5eeccac
tree17b3c88114f61001a830e6e0681758b92da81a61
parent0051094520d21e6867fbaeaf3de60da36bd7c51f
cpuset: Fix the bug that subpart_cpus updated wrongly in update_cpumask()

subparts_cpus should be limited as a subset of cpus_allowed, but it is
updated wrongly by using cpumask_andnot(). Use cpumask_and() instead to
fix it.

Fixes: 28d4fbb42d1d ("cpuset: Add new v2 cpuset.sched.partition flag")
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c