Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3855057rwb; Sat, 12 Nov 2022 14:48:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf45MBU+Ay0qS0Fj6MRueasr1dP7Tm1BVse+tUuPObMJnv0KzSvWqrvzYjS+CgeyW5eD7n/E X-Received: by 2002:a17:902:ef84:b0:186:7e8f:54dc with SMTP id iz4-20020a170902ef8400b001867e8f54dcmr7974620plb.156.1668293283671; Sat, 12 Nov 2022 14:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668293283; cv=none; d=google.com; s=arc-20160816; b=wocizYYtxw5cfSSEHk7cmc7u/3CkAIisZgtC1SEXvvWfWdKUrffQj6/GX6hEGAhD+J 5i926/Ys7POTScu78jtpVBr2+rrQZl1ytjBRaBvhKaDaUUkIt64OiV6kQ3p4wTgMe7zG 9SVkA/COSxYbpffQOLk1wkSGONTNLQQF2UVIRh16D67AEFNWmxBJEDEABfEbvsJpjkxa TyfklewcMCCG/381fQ8irju7HJG6YTNeUAfBjNaJ1MTOO35WvGv7KxM9h66HmarzXnDL TeDEKLHbjqd25lo+4vm85Gwg6fRhqFzXYAF1cd9xF4ZW01v9AUJ1sFEPCLpFE6nzEwOl 30DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hPqQ7pS391n2tdE33js5OayByAWbyhFUU/9GmPjNmvs=; b=s4E0A3uFSO+R1iMLrtKbu1t/CVwbDsQqJ2IzDNuVpDaeMr38YfS4R6wnw1sllaUyyi veKnBCaWMfj4g73AJn4eLkocfSr4tXHPdUbIRh3zdbbKQfQ8Se+iwLCXnfrjCvK+AbDz xHl7gjn4Qr5mOAFj1g5JdasVXPdKjl3LT8OOtfvQNP4iGQLE5t5fdosgvGniYg9TcyXm bY7ke9dfNIU0eNlkbGW10HBIPOR4e8lRPZHAHAPbOBJtLUmOit08i/rhA+PAHaAXkuWo HUIlLoRnMZ7lLlf++hzQE8YNvGp49pLCaatcRMQrxv+/ppTNuPlFeWXQtDlK1p1BpocA yoVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TOav40Lx; 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 u14-20020a63790e000000b0046f915df515si6456780pgc.29.2022.11.12.14.47.46; Sat, 12 Nov 2022 14:48:03 -0800 (PST) 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=TOav40Lx; 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 S235177AbiKLWVU (ORCPT + 91 others); Sat, 12 Nov 2022 17:21:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235139AbiKLWVN (ORCPT ); Sat, 12 Nov 2022 17:21:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65CB2B1DF for ; Sat, 12 Nov 2022 14:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668291613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hPqQ7pS391n2tdE33js5OayByAWbyhFUU/9GmPjNmvs=; b=TOav40LxkxNNwVgCQET5wLfqJ+wWUpw8YGCoqRyFbW/7L1ZDZTMw0QbNUGDbJXAq7pKnlg I0tcr/sXxxQBgk/z/iCLHCohuOf+l06xY6d4OaTpS4yNZyy4le1JQ4cVbjXtmGWTghYIOy G2M72YLr7b/gsNvXyRrBs4X7/02+Zqo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-342-h7gYLtUcNRy4cGvi6gEDzQ-1; Sat, 12 Nov 2022 17:20:09 -0500 X-MC-Unique: h7gYLtUcNRy4cGvi6gEDzQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9409085A583; Sat, 12 Nov 2022 22:20:08 +0000 (UTC) Received: from llong.com (unknown [10.22.8.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id DF75DC15BA4; Sat, 12 Nov 2022 22:20:07 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior , Waiman Long Subject: [PATCH 0/2] cgroup/cpuset: v2 optimization Date: Sat, 12 Nov 2022 17:19:37 -0500 Message-Id: <20221112221939.1272764-1-longman@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 This patchset contains 2 patches to optimize out unneeded works when running on a cgroup v2 environment. Waiman Long (2): cgroup/cpuset: Skip spread flags update on v2 cgroup/cpuset: Optimize cpuset_attach() on v2 kernel/cgroup/cpuset.c | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) -- 2.31.1