Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4243235ioo; Mon, 30 May 2022 23:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp2rJMiNSUgpp+PJ58dFuG5wWpkuK5eKucyqXUn5siLZAHTMsS2qeqVTHdhfRoyBSiZRTk X-Received: by 2002:a17:907:160c:b0:6fe:c691:47f2 with SMTP id hb12-20020a170907160c00b006fec69147f2mr39005956ejc.303.1653977676498; Mon, 30 May 2022 23:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653977676; cv=none; d=google.com; s=arc-20160816; b=j4R9lnVHgrgysLHrdQLXPWcMg3gJZ+FG9LKO5KJqDhsINjNOVgUhwJwWCjwY50GI2D VSr1uq+nxRRxiXXGkdvSRLMh8JHTMzbtlCvS+VTGoZA6lqGH1q6RF9EIn44BbqmTxA8S 9NmajJnkzuyr3FIW+NTkfI6c21gBOD2hRRuhfygJfkTn5dnA+Mn0dvc4BS3aGVucMC/i /RC9tHGueXUTAAfmIWiZz/x9MGYXj+PNs28YRFy67vWRrS4Pa8Uk3KV2Sv8ARV3cIIe0 8jg91JGHCj3RQ5a2smmOfo5jg4Da1khJ6Uiil+oidFkkz/zQNWFIdWEzsJKAMRGE8yKU mlxw== 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=iSUIiTx06ZERM+GKjNo7mEfUI96cbNfNRpNUyOJxVbw=; b=Wi8hjd8aqqHYfnF5Y/S474AETTniHbjSjLKZJuNnI6ffXpnA4reJmsbl8q0xUfZCaR 0N1EMrjfgtwJIud4NWCzxcuyCpMXFZXmLZNPp09NG+kW1VPEfZilfbHPyl2kP6mt2r5H 2iXM6TD9Ws5DRN+yJqWm2zA/uVr077j6kf5nNwYPXZh9gReToCk2IzSnTsg+cP/4RLtq NZ0yYQS1SlqeZ54y5+uy3ypjs6G6Cz1IcuQx4Kpy1Q5xPI8UiJG0zMM/amekafo7dl/S Zcr6coeWhFNNvfa0hV5vWtfINtuPiP3NK9nLsiuhM8D7EG3sYrbt1zrc2ML8xDKT4Mdv qolA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="S9dIeOW/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a056402275000b0042be697d594si13552855edd.337.2022.05.30.23.14.08; Mon, 30 May 2022 23:14:36 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b="S9dIeOW/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232234AbiE3CUn (ORCPT + 99 others); Sun, 29 May 2022 22:20:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230488AbiE3CUi (ORCPT ); Sun, 29 May 2022 22:20:38 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22B7E663C8 for ; Sun, 29 May 2022 19:20:37 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id s14so9087200plk.8 for ; Sun, 29 May 2022 19:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iSUIiTx06ZERM+GKjNo7mEfUI96cbNfNRpNUyOJxVbw=; b=S9dIeOW/SSwI/GwIi6mZhRw0z049GzAk4xXrjDc2cqWoLQTSdpxbVXfo27Q0GIqgZq cFIKJFAjhKtARCcqlnJoL8+2P/4uzOZj7N8O+6KO7jEYwmYGj0WccqEJB5lLG5fiheLw kciJw4jlRP75b514zThNHbZjytgaPa7TkCW+2RH2WhaxdXOrBmYNIj3Dt3pDKa6aMuuN 6DxUT6XV+LfRZ3/Av3ieogsztDo17h6OSV/dkUspznWWKQ3fKXNKXPL0VXpCdZwARsdX wmI47fH77ypiaOSEYqcwHBc0V9Jv3bWoJjEXfCUaSof2HQTkpb27wySM7+9DQYnqDZbj vKxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iSUIiTx06ZERM+GKjNo7mEfUI96cbNfNRpNUyOJxVbw=; b=ry4yYp8/3pTKFIwmC+BUsZC1jwB5JjTn1MCxxVgfY7mF1Pu2mTHBx6LRDA3qX8IA4s HIv9mCmf0gdoobFEQADP10jWF8pCFmd48pRcZaiLtUUtavJey2nGi++AKA1zpOaO6hnA UD6Z4F5wsiuYsbNPkWNvENwrsSRLguCiTcyZIK0yAPxJ/T4aiSIvorr/70iKyGODDX1U rzUybwFbSN5udTOX/58wYALC3LCyr8TdBL7oWSpYsvmmdSeNTjmaH9vFEZ/tbf8VMKMY ZkE7Ck9ZejVJ6je/Ijyy619Mikcz4H6kZc1KC9pcEOCEi1MweCSrOjnQCtVwqLsSlELk lCLQ== X-Gm-Message-State: AOAM532j3GDqU43ms16t/C/c9xqoOXTgIBHX+qjb41BsVXr/DKyHCcPx 3aDBhJQ78RejdEoOUXitl/69Mg== X-Received: by 2002:a17:903:41cb:b0:161:dd9c:bed2 with SMTP id u11-20020a17090341cb00b00161dd9cbed2mr52765762ple.138.1653877236645; Sun, 29 May 2022 19:20:36 -0700 (PDT) Received: from C02CV1DAMD6P.bytedance.net ([139.177.225.237]) by smtp.gmail.com with ESMTPSA id g1-20020a170902868100b0015e8d4eb25fsm4235738plo.169.2022.05.29.19.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 19:20:36 -0700 (PDT) From: Chengming Zhou To: sj@kernel.org Cc: damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: [PATCH] mm/damon: remove obsolete comments of kdamond_stop Date: Mon, 30 May 2022 10:20:16 +0800 Message-Id: <20220530022016.11771-1-zhouchengming@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Since commit 0f91d13366a4 ("mm/damon: simplify stop mechanism") delete kdamond_stop and change to use kthread stop mechanism, these obsolete comments should be removed accordingly. Signed-off-by: Chengming Zhou --- include/linux/damon.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index 7c62da31ce4b..fa1c2968b1dd 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -397,7 +397,6 @@ struct damon_callback { * detail. * * @kdamond: Kernel thread who does the monitoring. - * @kdamond_stop: Notifies whether kdamond should stop. * @kdamond_lock: Mutex for the synchronizations with @kdamond. * * For each monitoring context, one kernel thread for the monitoring is @@ -406,14 +405,14 @@ struct damon_callback { * Once started, the monitoring thread runs until explicitly required to be * terminated or every monitoring target is invalid. The validity of the * targets is checked via the &damon_operations.target_valid of @ops. The - * termination can also be explicitly requested by writing non-zero to - * @kdamond_stop. The thread sets @kdamond to NULL when it terminates. - * Therefore, users can know whether the monitoring is ongoing or terminated by - * reading @kdamond. Reads and writes to @kdamond and @kdamond_stop from - * outside of the monitoring thread must be protected by @kdamond_lock. - * - * Note that the monitoring thread protects only @kdamond and @kdamond_stop via - * @kdamond_lock. Accesses to other fields must be protected by themselves. + * termination can also be explicitly requested by calling __damon_stop(). + * The thread sets @kdamond to NULL when it terminates. Therefore, users can + * know whether the monitoring is ongoing or terminated by reading @kdamond. + * Reads and writes to @kdamond from outside of the monitoring thread must + * be protected by @kdamond_lock. + * + * Note that the monitoring thread protects only @kdamond via @kdamond_lock. + * Accesses to other fields must be protected by themselves. * * @ops: Set of monitoring operations for given use cases. * @callback: Set of callbacks for monitoring events notifications. -- 2.36.1