Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6922710rwb; Tue, 22 Nov 2022 22:38:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bFVrRIaNHqoWBzcudAWfzUpp8GGYrAxhYYDGJA+G/oqQ9tPwUFnS+OeXGGc/H6dxUC8Hg X-Received: by 2002:a17:902:e392:b0:189:1bb0:f23 with SMTP id g18-20020a170902e39200b001891bb00f23mr8117782ple.136.1669185513563; Tue, 22 Nov 2022 22:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669185513; cv=none; d=google.com; s=arc-20160816; b=F4z/O1XENeR3Vm2m8ahldTk/oapkAizxlIstqKDPW7H75eKbEE/yHDxeKHOaLYcYD7 mseJ+73cpBe0qGLQRcypnzHf0grnfPX5j30vIbJK/AiryW1w62Y9kxlFTdi9Z56mdpBs CpzgI8fxLik9dzc/Bik+pxLQn29zPYl5kncn5lO3Wnet2uuay3CvaGZQTIYmG4ARa4xp YX5yvpf6BUkPbVJhREDS4tUfGZbohDU231xhZXGlo3hN+6th9DtKfYpRMaXHnDqEu1hf 5OVshbTYgVn0czz09fVePuLYVVswd1h9t/Nsj2B/w1OGtE5QxME4VV1/XcLbERQR2v1t 5tHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Tbs+45x2l07CRaAe8zsFdTxHzDuaUUWGgMr4VDYrD8A=; b=Ml3HeULHNYNdiMpJrzNgu+ZrA3zMTTH5lDh1NftAMuoH2b2Pm4RCBLURNCtcwd23Vk lsbTDkQOGONbqiubR2DTYDe+4/3NRCN0wMY5bSZsOll8tnMOf2t8o3099C+gERtI4iMH wJRizhsMQeJX6Xwkz7kTdGrK60XXFn4hgqzR/xs0G+VFhIVGDaO7UeI3xJ+dXEEZrnpW HQaPm9B0UZ5iIU4Xm4zPQohEtYds6uKdBnxofQMA4WUFpeGawm7M2TUQddXZTLG1KfVq vsLUHlllD1jvfNizeO7ELPCs9Gyd6IzZIjYLZnCN23ccNgzwkjN+uf7tcBn0ceTjaFsK 929A== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a056a0023c300b00574694c70e1si5312pfc.22.2022.11.22.22.38.22; Tue, 22 Nov 2022 22:38:33 -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; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235917AbiKWGEm (ORCPT + 89 others); Wed, 23 Nov 2022 01:04:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235644AbiKWGEL (ORCPT ); Wed, 23 Nov 2022 01:04:11 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24A68F2C05; Tue, 22 Nov 2022 22:04:11 -0800 (PST) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NH9Y101kYzHw2C; Wed, 23 Nov 2022 14:03:32 +0800 (CST) Received: from huawei.com (10.174.178.129) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 23 Nov 2022 14:04:08 +0800 From: Kemeng Shi To: , , CC: , , , Subject: [PATCH 07/11] blk-throttle: remove incorrect comment for tg_last_low_overflow_time Date: Wed, 23 Nov 2022 14:03:57 +0800 Message-ID: <20221123060401.20392-8-shikemeng@huawei.com> X-Mailer: git-send-email 2.14.1.windows.1 In-Reply-To: <20221123060401.20392-1-shikemeng@huawei.com> References: <20221123060401.20392-1-shikemeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.178.129] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Function tg_last_low_overflow_time is called with intermediate node as following: throtl_hierarchy_can_downgrade throtl_tg_can_downgrade tg_last_low_overflow_time throtl_hierarchy_can_upgrade throtl_tg_can_upgrade tg_last_low_overflow_time throtl_hierarchy_can_downgrade/throtl_hierarchy_can_upgrade will traverse from leaf node to sub-root node and pass traversed intermediate node to tg_last_low_overflow_time. No such limit could be found from context and implementation of tg_last_low_overflow_time, so remove this limit in comment. Signed-off-by: Kemeng Shi --- block/blk-throttle.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 0aa21832cb96..bd07f562c799 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -1746,7 +1746,6 @@ static unsigned long __tg_last_low_overflow_time(struct throtl_grp *tg) return min(rtime, wtime); } -/* tg should not be an intermediate node */ static unsigned long tg_last_low_overflow_time(struct throtl_grp *tg) { struct throtl_service_queue *parent_sq; -- 2.30.0