]> asedeno.scripts.mit.edu Git - linux.git/commit
cpuset: Make CPU hotplug work with partition
authorWaiman Long <longman@redhat.com>
Thu, 8 Nov 2018 15:08:41 +0000 (10:08 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 8 Nov 2018 20:27:30 +0000 (12:27 -0800)
commit4b842da276a8a1057aed7af6b2a5da471f840dd0
treea873198bd83867ecac4b57684834c68dd03034b4
parent4716909cc5c566e946a3acc884bf5dc469812007
cpuset: Make CPU hotplug work with partition

When there is a cpu hotplug event (CPU online or offline), the partitions
may need to be reconfigured and regenerated. So code is added to the
hotplug functions to make them work with new subparts_cpus mask to
compute the right effective_cpus for each of the affected cpusets.
It may also change the state of a partition root from real one to an
erroneous one or vice versa.

Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c