Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2482692rdb; Wed, 4 Oct 2023 02:34:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEY/KRElkSoKyMR/qp8GjYsdJMvdkye75qZXnNX5bWJKpM4a35s7aK/Pau2NKn3KOS8uA8g X-Received: by 2002:a05:6a00:8ca:b0:691:27b:15b4 with SMTP id s10-20020a056a0008ca00b00691027b15b4mr9337717pfu.5.1696412043945; Wed, 04 Oct 2023 02:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696412043; cv=none; d=google.com; s=arc-20160816; b=zyQmeLicrav+wr4M0jQtcEAZo7Miaw0p2ozzcawPKaYaXepKH+sk/v9vNgz+Aer7yN bOfa8yZMjR78Z+NpBuqZMvpWexT8F+pFWIu4XmVRxLg/SNrSDlJU0kv4P7QCNuHWhnal 8mnnvBYxVJzgX9X4Q/HW1bLDoSsKd40CedokWNcgDeATasXwTKNheVBnxEz8GTFNf382 2XMWEfO2PEyckLbuFJpL6111tXYJcwNj9MjZuZvqnrVR+3RJE5MGIQQ7OssADk9Chqy4 hEhcJ0k4QaTiC6oz+8RIvgDcHX/El0coZh09DKoMXDn2ifKPuJ6YdIDPZGHK+nt6Xi56 pg0Q== 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=V8IRh3MVoH/jf6GxN4kJfc6QD532DWiPW05TRpljgBE=; fh=nAnuQ1FM4gWZJn2wx7UA4YpmUuMqhBLEemEey141vc8=; b=O50oCf1bMsW66pX1TuAAxOpjxGmpxoDkN9b54OH7gUXUlC6tG1HvN4UFwwKuwp6Lyx R53iw6IoVeGHwP8I33zFVJKMK5ecyCz+jEngdc+7jNJFau5zopjfg2iwMWEU/fthsa6a lmRdlnIseIgq1C5WOiYfbZFvHg4spSxutJODE7oBgbRiC453AvV5PCdONA8r0KeoUIFA /kk0dFyUD5JbfB7t++2jfhd13UZ0C+JyLS6R1m74ZnQxLW9vaslkB3nv+tjucW4pbtjS yoX6D4Tr1eHGTpTxh8s3t5YbKtxTHdpG3vnTQSOQjM/KZfAQkMDHpS+13WG+PGTVUums x8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UToci7Nn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i190-20020a6387c7000000b00589336ba9fcsi3289308pge.557.2023.10.04.02.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UToci7Nn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C28218206D41; Wed, 4 Oct 2023 02:34:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241906AbjJDJeA (ORCPT + 99 others); Wed, 4 Oct 2023 05:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241873AbjJDJd7 (ORCPT ); Wed, 4 Oct 2023 05:33:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF184A7 for ; Wed, 4 Oct 2023 02:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=V8IRh3MVoH/jf6GxN4kJfc6QD532DWiPW05TRpljgBE=; b=UToci7NnJ89bu/bRQAwNk2/S/h Pm4ebDTUK91eNB4Y8X9rgIhXgws+WkGC79lt6tglQehIcFVOjr7xdWTjZBimozrqrfZL/PLnsR2sZ p2exqubLSZEMPsAHIEWsTHgueSeBQC6nbjQhoYYElLAW7ppwvgl6Q3+tSTuSKZb/U6J2s0piQUPHV 2+dhp6L71bKofG7mRAiD0ZdcmOv4LJub9Tux03BG/cCk3aNBvqlSsTxL8D+Vng2Ug5nYq8Z7XnJJN tRnPDq493zmjbC/oZxiayZAjEQ2U4uTKFv93ekYFddN+RrY/zk/pSDrd4N0OoeP9O4Agnpe1hJt9C cYUi1xMw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qnyFw-002dAX-7D; Wed, 04 Oct 2023 09:33:24 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id DEF37300338; Wed, 4 Oct 2023 11:33:23 +0200 (CEST) Date: Wed, 4 Oct 2023 11:33:23 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Zhang Qiao , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched: Update comment of try_invoke_on_locked_down_task() Message-ID: <20231004093323.GK1539@noisy.programming.kicks-ass.net> References: <20230731085759.11443-1-zhangqiao22@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:34:02 -0700 (PDT) On Wed, Oct 04, 2023 at 11:31:26AM +0200, Ingo Molnar wrote: > > * Zhang Qiao wrote: > > > Since commit 9b3c4ab3045e ("sched,rcu: Rework > > try_invoke_on_locked_down_task()") renamed > > try_invoke_on_locked_down_task() to task_call_func(). > > Now, update some comment about it. > > > > Signed-off-by: Zhang Qiao > > --- > > kernel/sched/core.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > > index 0d18c3969f90..540ac33ddb80 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -4186,7 +4186,7 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) > > * Pairs with the LOCK+smp_mb__after_spinlock() on rq->lock in > > * __schedule(). See the comment for smp_mb__after_spinlock(). > > * > > - * A similar smb_rmb() lives in try_invoke_on_locked_down_task(). > > + * A similar smb_rmb() lives in task_call_func(). > > Except the matching smp_rmb() doesn't live in task_call_func() anymore, so > you now turned a stale comment into a misleading one ... It moved, *again*, it's now in __task_needs_rq_lock() :-)