Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4198119rwd; Tue, 23 May 2023 04:48:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58QLotxkQqW/xdqipAZW7k9ktd8EaFxdNgEcD8NocYtAG5VEbUzsMtl22Sc2zSA9aDYUgy X-Received: by 2002:a17:903:1c3:b0:1af:bd10:4045 with SMTP id e3-20020a17090301c300b001afbd104045mr5483276plh.6.1684842482537; Tue, 23 May 2023 04:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684842482; cv=none; d=google.com; s=arc-20160816; b=WcIz8a9TWiDPBNLe1O8vKRVQXbv4NtjNahXFsyBzc2UlRGAWM7oIQawgwjKRn5dn8d 5kkNqpkU9tg0veWlihUcNbx6dvDytt0tJm3mgYY981W2xDXijJ4fjI8qDD4LyjhBDSCR 4gbBZFtU+FN4orZ6PstU4q06D6PWqSbKF6KkFhVNcR1zN7DQ0SMsMzNmQjxOBnzB+EzK 2A1DBqWf+qvumTczAnf1HtT/AsfjXKR3z4409KxwgxHBMjJqFCetRVq3kUJ8LHwgkp9Z NVa28CjckKW4pFnn4lRqNRh3S29pLKVyWeqA2l1zx73h9ZUkfRYi7p33VdRmqAeQaWen 6Etg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ZMosVPfqGcFYbptt8njyxkUQDgZsg3xrmOfyQR7XriU=; b=nTPjRW4MrV2JD2YzwCPPmReixI4JZTrwWdz+aX131WFuj/9UADky/duOnuApjujv1C TyY7PYKu63Z5cpHZfCYn0YXfbF6VN9jWvJQ9VGFtRqeQn+beMwNX1rO7g2BvOHQNAtlI eeHvnB5TdIOk+bFMFWc/zoTwW/9mEwJVquBGd/7Q+cQPLR/+KsCI/pf2/2SB9CblhLhw r7nQ1J2mOD3fjULz622R67Vd3oyxBNidZK3HOcEQ6fQAPCcoEKLW7OBMabUtfw+9jD1w KYX0/WyOJHuZtoLt+I1SIKCdjmdpKi2s6Ff/ENE+tQAMcE7HcvjHyHHHCIQZGbYHyq/O QdLA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a170903234700b001ae0691dff4si982686plh.630.2023.05.23.04.47.49; Tue, 23 May 2023 04:48:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236429AbjEWLQd (ORCPT + 99 others); Tue, 23 May 2023 07:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235288AbjEWLQV (ORCPT ); Tue, 23 May 2023 07:16:21 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D2CAFE; Tue, 23 May 2023 04:16:18 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QQWwH0M82z4f41Sw; Tue, 23 May 2023 19:16:15 +0800 (CST) Received: from ubuntu1804.huawei.com (unknown [10.67.174.58]) by APP1 (Coremail) with SMTP id cCh0CgBXrRd_oGxkxWnRJQ--.15544S4; Tue, 23 May 2023 19:16:16 +0800 (CST) From: Xiu Jianfeng To: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, xiujianfeng@huaweicloud.com Subject: [PATCH -next] cgroup: Remove out-of-date comment in cgroup_migrate() Date: Tue, 23 May 2023 19:14:56 +0800 Message-Id: <20230523111456.146053-1-xiujianfeng@huaweicloud.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: cCh0CgBXrRd_oGxkxWnRJQ--.15544S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw1kZF48Aw1fCw17uw1rWFg_yoWfZrb_tw 4jq340qryfAw13tr1Sqws3XFZ2grs5Cryvgw15tay7JFyUtFn5Xrs7tF13JrZ8AFs2kr1D ur9xWa97trnFgjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbx8FF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6r1F6r1fM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUAVWUtwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY1x0262kKe7AKxVWU AVWUtwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14 v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkG c2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j 6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUSLv NUUUUU= X-CM-SenderInfo: x0lxyxpdqiv03j6k3tpzhluzxrxghudrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 From: Xiu Jianfeng Commit 674b745e22b3 ("cgroup: remove rcu_read_lock()/rcu_read_unlock() in critical section of spin_lock_irq()") has removed the rcu_read_lock, which makes the comment out-of-date, so remove it. Signed-off-by: Xiu Jianfeng --- kernel/cgroup/cgroup.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index d8ba2c67910d..415d51c713ad 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -2871,11 +2871,6 @@ int cgroup_migrate(struct task_struct *leader, bool threadgroup, { struct task_struct *task; - /* - * Prevent freeing of tasks while we take a snapshot. Tasks that are - * already PF_EXITING could be freed from underneath us unless we - * take an rcu_read_lock. - */ spin_lock_irq(&css_set_lock); task = leader; do { -- 2.17.1