From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.37 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792678534; b=GktDnRqNY0Tf5rrwtESAOn5rDHdGiBuqivlnowPSWkoxqm8DgVIMWd/nyjcGkY5LDPYU 39+LKdoWBSrkU2Giysep5szzKrnD8DKELHddbA1VENJnL4eVnmkw6NUjpcnVzM2ZldOfW aFVyiuIVzdDfKf1XIgveuy0pQCpGCrjJj67FE0InppvlxWbC2F62N+9oFG+Iu+ICXZ4+V ZU2GhQt6VYq0yG72Mb4PPyIPABjrgUaoX1Fz00q2Mcf6/9NqUxtKeYCqE8fpLkEcNNdqJ /pffOuIKlunw6uYjD7MQf10UmDBAmkbNAjiVT11Lq/qiGVPmPZt4NSaLzUenVwr5slg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792678534; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=epyFtwYSPrjZ9PLrBopoV0b/lvcyA6ik39i7A0Z5zyw=; b=hdYCxhlUcXC7JFI4OHNiHTFH31IZvBEkMlNTJLDM0g6sObTmowwWCoztn90ge1RmpLHO FxV+JxX8ZI+lfvI8BBbnUFX9NlfbGAuSr94S4GKRV8RAQpazeX0puE2JEm0utD+FLHxhn 0Ke5/ghVBhOI5TB311dW+Y4h2Hwej6nb7ISzSaNAbUZgzX0XJpE+Vrw0Pa4RScKs/1lY9 G25AiHj8PQJ0ICBi4cYOuH5RxVjJ+ehaUhj6mAdoQWeQarRl/R1pCVmLf1ej6vBULSgYG 5L4Hdu7eI1G5oidyHE75A+E5EE/oePIBk/GMW2XKImsm3s+bmy0ielllt9jCwcZZvjA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=lpyzliUI; arc=none smtp.remote-ip=91.218.175.37 Received: from mta0.migadu.com (out-37.mta0.migadu.com [91.218.175.37]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D8FA606A325 for ; Thu, 22 Oct 2026 14:15:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4D8FA606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=lpyzliUI X-Envelope-To: cgroups@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=D2eJJQ4mGSfAGvCg/Pv88qDyEOPbv9qYIjiQF32h0dA=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1792678531; v=1; x=1793283331; b=lpyzliUIKs4LjhFXKiHVYWTmluEHXqpgeDCJLGWn69FOTK4zA/5yvj8QmmNmtgGzZPDE8KRd I43VFKeWo6S7MwS76z1Txwh/8zULjpL2xMsKCsVF2TRT4BECrET+iJivnhJwt52GX807ZzrCy5y XtupR1dF8HI1lgxPFBtbgffU= X-Envelope-To: cgroups@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id e51268da0f0b5f4a; Thu, 22 Oct 2026 14:15:24 +0000 X-Mizu-Trace-ID: e51268da0f0b5f4a X-Migadu-Flow: FLOW_OUT Message-ID: Date: Thu, 22 Oct 2026 22:15:14 +0800 X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH-next 4/6] cgroup/cpuset: Minor fixes to prstate_housekeeping_conflict() To: Waiman Long , Ridong Chen , Tejun Heo , Johannes Weiner , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Shuah Khan Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20261022031643.1351877-1-longman@redhat.com> <20261022031643.1351877-5-longman@redhat.com> Content-Language: en-US From: Guopeng Zhang In-Reply-To: <20261022031643.1351877-5-longman@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 2026/10/22 11:16, Waiman Long 写道: > Commit 9527ff78a413 ("group/cpuset: Consider all the exclusive CPUs when > doing housekeeping check") changes the way prstate_housekeeping_conflict() > is being used by considering all the exclusive xcpus to be owned by the > partition when doing housekeeping check. However there are two minor > issues reported by sashiko with that patch: > > 1) In partition_cpus_change(), prstate_housekeeping_conflict() can > be called with an invalid partition root. In that case, there are > no isolated CPUs that are going to be returned back to the system to > become housekeeping CPUs, so the calculation of the del_cpus cpumask > is meaningless. > > 2) The checking of del_cpus in prstate_housekeeping_conflict() to see > if it can contain an active housekeeping CPU that can be returned to the > system ignores the fact that an active CPU not in HK_TYPE_DOMAIN_BOOT HK > cpumask will not become an active housekeeping CPU when it is released > by an isolated partition. > > Update the existing code to handle these two issues properly to make > prstate_housekeeping_conflict() produce more accurate result. > > Fixes: 9527ff78a413 ("group/cpuset: Consider all the exclusive CPUs when doing housekeeping check") One trivial nit: the commit message says "group/cpuset" (missing 'c') in two places, including the Fixes: line. Thanks, Guopeng