Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp524434imn; Thu, 28 Jul 2022 07:55:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vP+JvKaTrkQ1I8QWHZ2HUv21cH7zOR8qanMy3DHpTL2p2jxNH/qzO+Hw7NRVfzGxyRTZLB X-Received: by 2002:a63:5653:0:b0:419:ffb6:3ec6 with SMTP id g19-20020a635653000000b00419ffb63ec6mr23329429pgm.149.1659020100018; Thu, 28 Jul 2022 07:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020100; cv=none; d=google.com; s=arc-20160816; b=KaBb7dAME6bVPT9YsZ/C2UiPb0jw6ewUWGhUeYcKHu+kybCAAhqAH8BmQjN5kEFcyi 6ggh833koCWdRHR4ZXd3cGyhGD0e1wC/XCpSOifeHi+U1km0UcgJAx0tfPaDsNth4Ty4 nzOkZDfr1rpDDCI5mjZB4MFJDoCwd3wh9yMW+NoNgsGbHKf3imNkRnDZvP2O9bDGjlm8 ddHCnrSKb3e1FftPgx2+fxlSQ/JgrEk1Ud4fpBss3uZkmNxsUabaORIBCSzqjoXJywyp Y4/YU5FU6hn4p5IOTIywCYH01VS+SWK/U3LMfJAkyiU1qh1KkBq46VNg05KcUzaTl0LO aJIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Y72epJF5d8qli+9Ce0BVC/x2v9XQ9z23UFNcVj/FJ4A=; b=bqgjNiks+I24Y5Ng1/LDLTXa2d9LK5GMj7KAaoTHoeRIJpySBr4gOOXgxiolMikh6J 4g4zlmZtYsbYHcFs4tmJno5NHVDfKRhdO43wEOVw6pV7Ta9NU5WR9L6RTnwQUWpxxnOf rDVSFlzYuCgChrYXGNscnGqP/YjIf/UgYLtViSnUD2QLSiA5G9r6q4mk3OTXIK0U7xnM OPVU6J6Uc8fnjbw6fZoDjTZ+uOpYASxbD5hYcTHe/m6D8FIvN4uIAazB+S1ypGUsuWOh IuLnB0LWyao6W2Vu9QpOYTgClSywDAOkNOprGu4m0BRkGSZrssiDPagH4AM/kPN4/FLH qyNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fc8wIT1w; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a170902db0400b0016c39c15fb9si1444412plx.201.2022.07.28.07.54.42; Thu, 28 Jul 2022 07:55:00 -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=@redhat.com header.s=mimecast20190719 header.b=Fc8wIT1w; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbiG1Ote (ORCPT + 99 others); Thu, 28 Jul 2022 10:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiG1Otb (ORCPT ); Thu, 28 Jul 2022 10:49:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C26651413 for ; Thu, 28 Jul 2022 07:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659019770; 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=Y72epJF5d8qli+9Ce0BVC/x2v9XQ9z23UFNcVj/FJ4A=; b=Fc8wIT1wXK1+SxUbIFbxzulBtkPLyuxLqHjQZLK+z2m4xY7ZV2VLKwaFIaQHZ+IOADuHLV ninCdV7+fLKPvFgpz0BHFBGzuMoSfFjBwfcCvaWqgL071utlAkrTDtBozMnnYOSjWNclVR qHEKerfUyM6taRzCEI4YoTWTLtZFfik= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-534-XijDdIi4PyCKyGWgOxNPkA-1; Thu, 28 Jul 2022 10:49:24 -0400 X-MC-Unique: XijDdIi4PyCKyGWgOxNPkA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 513D81C0BC6A; Thu, 28 Jul 2022 14:49:23 +0000 (UTC) Received: from [10.22.9.86] (unknown [10.22.9.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4854740CF8EB; Thu, 28 Jul 2022 14:49:22 +0000 (UTC) Message-ID: <8e0a41e6-8d03-b0ad-02b5-04449c49c470@redhat.com> Date: Thu, 28 Jul 2022 10:49:21 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 2/2] cgroup: Skip subtree root in cgroup_update_dfl_csses() Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=c3=bd?= Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tejun Heo , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220728005815.1715522-1-longman@redhat.com> <20220728005815.1715522-2-longman@redhat.com> <20220728144426.GA26631@blackbody.suse.cz> From: Waiman Long In-Reply-To: <20220728144426.GA26631@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On 7/28/22 10:44, Michal Koutný wrote: > On Wed, Jul 27, 2022 at 08:58:15PM -0400, Waiman Long wrote: >> The cgroup_update_dfl_csses() function updates css associations when a >> cgroup's subtree_control file is modified. Any changes made to a cgroup's >> subtree_control file, however, will only affect its descendants but not >> the cgroup itself. > I find this correct. > >> So there is no point in migrating csses associated with that cgroup. >> We can skip them instead. > Alone it's not such a big win but it componds with the recent Tejun's > threadgroup_rwsem elision. > It is more an optimization patch trying to not waste cpu time doing unnecessary work. >> --- >> kernel/cgroup/cgroup.c | 9 +++++++++ >> 1 file changed, 9 insertions(+) > Feel free to have > Reviewed-by: Michal Koutný > Thanks for the review. Cheers, Longman