Re: [PATCH v2] cgroup/cpuset: Handle cpu hotplug race in guarantee_active_cpus()

From: Tejun Heo

Date: Fri Oct 02 2026 - 14:39:15 EST


On Fri, Oct 02, 2026 at 12:54:38PM -0400, Waiman Long wrote:
> With commit 2125c0034c5d ("cgroup/cpuset: Make cpuset hotplug processing
> synchronous"), the cpuset hotplug operation becomes synchronous. That
> commit also removes the code that handles race between cpuset_hotplug_work
> and cpu hotplug notifier with the assumption that race is now gone.
> Later commit 7a0aabd9ce69 ("cgroup/cpuset: Always use cpu_active_mask")
> updates the cpuset code to always use cpu_active_mask instead of
> cpu_ohline_mask in some places including guarantee_online_cpus() which
> is renamed to guarantee_active_cpus() in that commit.

Applied to cgroup/for-7.3-fixes with two typos fixed and the following tag
added:

Cc: stable@xxxxxxxxxxxxxxx # v6.16+

Thanks.

--
tejun