Skip to content
Commit aa9e96db authored by Tianchen Ding's avatar Tianchen Ding Committed by Greg Kroah-Hartman
Browse files

cpuset: Fix the bug that subpart_cpus updated wrongly in update_cpumask()

commit c80d401c upstream.

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: ee8dde0c

 ("cpuset: Add new v2 cpuset.sched.partition flag")
Signed-off-by: default avatarTianchen Ding <dtcccc@linux.alibaba.com>
Reviewed-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3bbe2019
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment