]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: Eliminate unncessary sched domains rebuilds in hotplug
authorWaiman Long <longman@redhat.com>
Mon, 5 Aug 2024 01:30:17 +0000 (21:30 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 5 Aug 2024 20:54:25 +0000 (10:54 -1000)
commitff0ce721ec213499ec5a532041fb3a1db2dc5ecb
treec0cf2b41903aa4352a2f976c038727b9f5c77feb
parent311a1bdc44a8e06024df4fd3392be0dfc8298655
cgroup/cpuset: Eliminate unncessary sched domains rebuilds in hotplug

It was found that some hotplug operations may cause multiple
rebuild_sched_domains_locked() calls. Some of those intermediate calls
may use cpuset states not in the final correct form leading to incorrect
sched domain setting.

Fix this problem by using the existing force_rebuild flag to inhibit
immediate rebuild_sched_domains_locked() calls if set and only doing
one final call at the end. Also renaming the force_rebuild flag to
force_sd_rebuild to make its meaning for clear.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c