Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1150249lqt; Sat, 20 Apr 2024 02:53:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/bjmdnJGf7EIpqHPo2TJvgoSrRYrvEbvYWXNhEffT2IncUUyL9tgpTM+3XgxQK//XpQWQ2PNQNS6uDNIerfSL0HGFhET4YRy1zO3TIw== X-Google-Smtp-Source: AGHT+IEEA3umi03DsTcTqaRPJKH2CyoOlHkLbLPSXOYzI25o+4x3ANCg2uiKhE12doO9HbrRfgGS X-Received: by 2002:a17:902:7489:b0:1e5:5be7:be86 with SMTP id h9-20020a170902748900b001e55be7be86mr4483536pll.52.1713606831983; Sat, 20 Apr 2024 02:53:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713606831; cv=pass; d=google.com; s=arc-20160816; b=LFnVehFWpyELUcowXSjN0aovEb6ksRwA1LQdKafNEC0UZ8/pZoJah8jmCqQFxQiOwj uNncXFUomUqXy119Xyb4xtCFDGEl/FyY486N2//B0Vc77hxIiCEcbMXrQzsD4nqmLCCM EAAYME77+fqnzaCmb8c9hykuPLgnrIaCvf7yChGEkf47Mepue1AaTr8DOB1FKVe/1tLN 2YxK2fUxIVgC3447x0Eyl7wczjyLp5XWRg+UFgvcGahyCXpYUtbV0z3pKksRg59QGgZJ KGDdGZwMi7HWZbSwG8GshbIt1fKwj0wjtuJfC4Ck1XvoWYIgghECXnqTugJxcA5gs3IK 8dzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=tn+aWRBV+oqbmb49QUlxOaY/J2esZBA9xm88ZBEef5Q=; fh=GAsBSnfpf5FUVQQ6kd9dqsBkwIL387UZSVRwt6d+Yp8=; b=mVuJzxAIdEVSgQ1IW9mBPEWeSX1XQSdwAomneAi5sAWZQkokxLB/ZD2/0qsP3NUgUY XooheOVzo7f68i4sG5vqHl7ycNOkTp2052NBsLuBA8xvJSL2gkX3+sIkhETVquXTvFvC crFeQ+YpQKNHBstVjXDpwRZdGVKfF4jpHDWNxItaDL6LxOC6gTmy7b/GxROqAqmn7ZH/ rEaUCiVLO6g99bvEiTveO/wSVwL9FtN6zxyG8HpWU5EARx1f+3zCErF6zcI4WjPATyET T0Mw+RtOyTsMCZ9KVMj/MhsBFVn2dxKnAxBA2sGv7usBMZTgaF6aNItjYkeOIsNYtnQF lKIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-152220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q11-20020a170902eb8b00b001e7d46e3bddsi4658717plg.605.2024.04.20.02.53.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 02:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-152220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9D46F282048 for ; Sat, 20 Apr 2024 09:53:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B13B17BCC; Sat, 20 Apr 2024 09:53:45 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BA3B14AA8; Sat, 20 Apr 2024 09:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713606824; cv=none; b=NaGxhCc8j0PzCxqYAgo4rzdvwnhfLqbnnroWdvaTp4+xY6/lg1PssJ19CdK3CBCBMW00mD6Ymdokrn/1M1VVjYYyHryWQSQNtBa+Xlx5oPNzfL1BxlQzMxEDXqbJTveaELHnrt51shKnfmXuiV7lPJBVjIFMpDqUDIF9aJHQaqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713606824; c=relaxed/simple; bh=+UEfW4n/OC58SXRIdwEccw/Q+poG33AQ5RAZ8Fq1a04=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=pzbTe3hpiQCWe36fpIy01LE+bxRpuV82r5H/PauAwR3EAEkhxT7J00SNHkAmP+I6jjze1ImH1Ome8djUNl8rt9G+jbMcyzJiJ6IvHrfZZtPj2vgSX6cgEYq6ceJB6jWhNmmrGSVGz3uTJYw9BHFG56StOUIfqFJn3itvWTlYi9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VM6Fx0lzHzdbFs; Sat, 20 Apr 2024 17:50:45 +0800 (CST) Received: from dggpeml500023.china.huawei.com (unknown [7.185.36.114]) by mail.maildlp.com (Postfix) with ESMTPS id 8474418007C; Sat, 20 Apr 2024 17:53:41 +0800 (CST) Received: from hulk-vt.huawei.com (10.67.174.26) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 20 Apr 2024 17:53:41 +0800 From: Xiu Jianfeng To: , , , CC: , Subject: [PATCH -next] cgroup/cpuset: Avoid clearing CS_SCHED_LOAD_BALANCE twice Date: Sat, 20 Apr 2024 09:47:13 +0000 Message-ID: <20240420094713.1028579-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500023.china.huawei.com (7.185.36.114) In cpuset_css_online(), CS_SCHED_LOAD_BALANCE has been cleared in the is_in_v2_mode() case under the same condition, don't do it twice. Signed-off-by: Xiu Jianfeng --- kernel/cgroup/cpuset.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index e70008a1d86a..159525cdaeb9 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -4059,13 +4059,6 @@ static int cpuset_css_online(struct cgroup_subsys_state *css) clear_bit(CS_SCHED_LOAD_BALANCE, &cs->flags); } - /* - * For v2, clear CS_SCHED_LOAD_BALANCE if parent is isolated - */ - if (cgroup_subsys_on_dfl(cpuset_cgrp_subsys) && - !is_sched_load_balance(parent)) - clear_bit(CS_SCHED_LOAD_BALANCE, &cs->flags); - spin_unlock_irq(&callback_lock); if (!test_bit(CGRP_CPUSET_CLONE_CHILDREN, &css->cgroup->flags)) -- 2.34.1