From: Waiman Long Subject: Re: [PATCH v3 2/9] cgroup/cpuset: Fix a partition bug with hotplug Date: Tue, 27 Jul 2021 16:16:56 -0400 Message-ID: <2173a00b-504a-1932-877d-d26775e4775c@redhat.com> References: <20210720141834.10624-1-longman@redhat.com> <20210720141834.10624-3-longman@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627417020; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ByUPLbiVuvdvoapeEFXQAcFKJj/8lLrwBdwnV9vgH+s=; b=iIPYqXhCxCQ/tI2aYQFlODE1F3UluJwhMLsCtJIL6dxTpUc6duCZErA/0NMrf/FQ9v6VYQ kVXxAUsNLVyGRANNgGGwZuA/kcpiszOqAO1LQ4eAMpIY3IBJLke102HomkElsJgcSwK3U4 9oeGI14kIdPEi0z3L79v7iom4+LBXQw= In-Reply-To: Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tejun Heo Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , =?UTF-8?Q?Michal_Koutn=c3=bd?= On 7/26/21 6:59 PM, Tejun Heo wrote: > On Tue, Jul 20, 2021 at 10:18:27AM -0400, Waiman Long wrote: >> In cpuset_hotplug_workfn(), the detection of whether the cpu list >> has been changed is done by comparing the effective cpus of the top >> cpuset with the cpu_active_mask. However, in the rare case that just >> all the CPUs in the subparts_cpus are offlined, the detection fails >> and the partition states are not updated correctly. Fix it by forcing >> the cpus_updated flag to true in this particular case. >> >> Fixes: 4b842da276a8 ("cpuset: Make CPU hotplug work with partition") >> Signed-off-by: Waiman Long > Applied to cgroup/for-5.15 w/ a minor update to the comment (I dropped > "just" before "all". It read weird to me.) > > Thanks. > Thanks for fixing the wording. Cheers, Longman