Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E714C7618A for ; Mon, 20 Mar 2023 15:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232313AbjCTPJo (ORCPT ); Mon, 20 Mar 2023 11:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbjCTPJX (ORCPT ); Mon, 20 Mar 2023 11:09:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDBAF7AB8; Mon, 20 Mar 2023 08:04:41 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 64CFD1F894; Mon, 20 Mar 2023 15:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1679324675; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hwWqYXOi2JWUeQesBva9impsRBcN0SMjROswWsfpc4s=; b=r8Ym2XCbihrsxLtFN08w06AOIshHu11IbK2BZr6ABPHC7XQk0y0yK4mY8d81jkGe3H0/Cg lsmCJu73Fn24TssqB10M9LUnvuQ3AtCZSk4r3zEmQlIbFacyS0/YKpuAR+VVVD9U66RiN7 G/cFWEmoCSMmZbkRpEUr1vD4mv0gFA0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1B2A013A00; Mon, 20 Mar 2023 15:04:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DDuBBQN2GGT+OAAAMHmgww (envelope-from ); Mon, 20 Mar 2023 15:04:35 +0000 Date: Mon, 20 Mar 2023 16:04:33 +0100 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Waiman Long Cc: Tejun Heo , Zefan Li , Johannes Weiner , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Will Deacon , Peter Zijlstra , Juri Lelli Subject: Re: [PATCH v2 3/4] cgroup/cpuset: Include offline CPUs when tasks' cpumasks in top_cpuset are updated Message-ID: <20230320150433.v3xcl7rqsxz4x6tg@blackpad> References: <20230317151508.1225282-1-longman@redhat.com> <20230317151508.1225282-4-longman@redhat.com> <20230317180157.uqlleobldg53pgj6@blackpad> <11b5454b-42c7-fb0d-f071-c46712f76f3b@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g3azguixlje76xpd" Content-Disposition: inline In-Reply-To: <11b5454b-42c7-fb0d-f071-c46712f76f3b@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --g3azguixlje76xpd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 17, 2023 at 02:05:32PM -0400, Waiman Long wrote: > A cpu will be in the subparts_cpus only if it has been given to the child > partition. So when it becomes online, it will become part of the scheduling > domain that child partition. Only the tasks in that child partition will get > their cpumasks updated to use it, not those in the top cpuset. Right, it's actually the difference between offlining a CPU and giving it to a sub-partition (hence a removed child (or switched to member) before CPU onlining). It's clear to me now. Thanks, Michal --g3azguixlje76xpd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCZBh1/wAKCRAkDQmsBEOq uX3wAQCFD+U7rIP4rxH0pPPjBiVpGL+85S7rzdSIW7hL/H4DaAD/VJF7JKo6+E01 gtBEpTVziKoADESQUhA8DJ2KYUQIlw4= =n3My -----END PGP SIGNATURE----- --g3azguixlje76xpd--