Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35569587rwd; Mon, 10 Jul 2023 09:13:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHZfuk80//6OByYmUw+BUPzoDGI2n3snP1y1oSYS54ywbae/CIAVlSgvyZ8+wnwLp7QjmN7 X-Received: by 2002:a05:6a20:244b:b0:122:31fc:366a with SMTP id t11-20020a056a20244b00b0012231fc366amr13076404pzc.36.1689005636009; Mon, 10 Jul 2023 09:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689005635; cv=none; d=google.com; s=arc-20160816; b=QGVdQVIx5F/VJQPFxk0xB4DjOe108VSmYES9+kW2JzGl06q8MOm5FNB8RCp6mT6kMo BBG9QPlinkMKXLiYQYXGZ6vbpKB5kH/2ymkWfZY1fC2afvAoH6Y94khdSIBAtBX5l2EX JBau+qyo+8jU66eLTKRA+0a6p2gQcxtywHMMzDWXps5DK123U8wpzdw4SXbuRRCTofB6 tlGwRUeTLpel+gszvl8WPdIg32yjyIPcTMlvTrYlMNuoSwGBtqwaFZW2vUx78fd1yyRi /bkvlndoDwqsyKjhps/F8XIh1yZ6LX3B9WPMPHBMoqHaOuHfTDQjc7tuGQpdZx+druTm 4Utg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o3Yl6KJ5iaf9hnfCzXQRl84Iaqux0AkHxDIFY4RqjNw=; fh=mTMOQ1NISSkL+zV3cd6sxAmBKhKnmNMlWLXvs3lLh5k=; b=s/uskhjcJIgu99sLCDYQoxt71iPY/4ZYmZfjWCoq27hQjUN7Qp3vuahiTt0QqbuTRC n3Zs7w8weIHwoE/RGoeE5XjyaUdtYBTlqEuhQo+FYBpMQ5yTj1GVtRMZEOzzQaXKAX8G idsFP1QpwoE+98P5uWFzP8AheEEOritT9kkwyz3/y8LtlfzL0qMGuVJPjhpfb04pmzdG KSfOzIGZNJhHX683D4hiNzh/aR9ABtsIZOvoOsmXU6R/TCrzCAh2Lx9AE4Esynjel8yR pUoYk2IZA+DOk3C6YlFIhJZUeWF7zRYqv0l9H6Mn6v27aymH5Pb1NMYK3FZFRHuMAHHg GO8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RZVYDWZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a170902e74c00b001b86671b3f1si83889plf.190.2023.07.10.09.13.41; Mon, 10 Jul 2023 09:13:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RZVYDWZ3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbjGJPyx (ORCPT + 99 others); Mon, 10 Jul 2023 11:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233615AbjGJPwn (ORCPT ); Mon, 10 Jul 2023 11:52:43 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE105E50; Mon, 10 Jul 2023 08:52:09 -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 937A41FEB0; Mon, 10 Jul 2023 15:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1689004285; 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=o3Yl6KJ5iaf9hnfCzXQRl84Iaqux0AkHxDIFY4RqjNw=; b=RZVYDWZ3/urg8+OJrIGYGpUrF751dlFkNaykpkxGQn+RqXVDGewk43zN/vQ2i0TKnuoxE/ s7uQLUU69qyMXv11RQzR4bprnARgyqFrYmMNWSbM1NRZ3Q442UZgzD6NFe5dgPpxB63CnK wdVjoFlpxkXACX6TRNmKaO0oBArtHfg= 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 646901361C; Mon, 10 Jul 2023 15:51:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SBCfF/0orGQjbQAAMHmgww (envelope-from ); Mon, 10 Jul 2023 15:51:25 +0000 Date: Mon, 10 Jul 2023 17:51:24 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Waiman Long Cc: Miaohe Lin , tj@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup/cpuset: update parent subparts cpumask while holding css refcnt Message-ID: References: <20230701065049.1758266-1-linmiaohe@huawei.com> <74f1906e-fe58-c745-a851-b160374f7acf@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ktauyloq4o6i5icy" Content-Disposition: inline In-Reply-To: <74f1906e-fe58-c745-a851-b160374f7acf@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ktauyloq4o6i5icy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 10, 2023 at 11:40:36AM -0400, Waiman Long wrote: > I believe the primary reason is because update_parent_subparts_cpumask() can > potential run for quite a while. So we don't want to hold the rcu_read_lock > for too long. But holding cpuset_mutex is even worse than rcu_read_lock()? IOW is the relieve with this reason worth it? > There may also be a potential that schedule() may be called. Do you mean the spinlocks with PREEMPT_RT or anything else? (That seems like the actual reason IIUC.) Thanks, Michal --ktauyloq4o6i5icy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZKwo+gAKCRAGvrMr/1gc jvoTAQDxUP5rRDvddw1/LeVeB6ciZXYjqioRtToDzNWdWiOIFAEAi10plOPMMm5q 0JhePeVrhp89P6ZsW9Vqi4y25ZY1mA4= =qaQM -----END PGP SIGNATURE----- --ktauyloq4o6i5icy--