On Sun, Aug 04, 2024 at 09:30:17PM -0400, Waiman Long wrote:
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
Applied to cgroup/for-6.11-fixes.
Thanks.