From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FB71C64E75 for ; Thu, 26 Nov 2020 08:16:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8CA320DD4 for ; Thu, 26 Nov 2020 08:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388698AbgKZIQY (ORCPT ); Thu, 26 Nov 2020 03:16:24 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:34448 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728901AbgKZIQY (ORCPT ); Thu, 26 Nov 2020 03:16:24 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R961e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UGaAtDU_1606378580; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0UGaAtDU_1606378580) by smtp.aliyun-inc.com(127.0.0.1); Thu, 26 Nov 2020 16:16:20 +0800 From: Baolin Wang To: axboe@kernel.dk, tj@kernel.org Cc: baolin.wang@linux.alibaba.com, baolin.wang7@gmail.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] Some cleanups and improvements for blk-iocost Date: Thu, 26 Nov 2020 16:16:10 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi, This patch set did some cleanups and improvements for blk-iocost, and no big functional changes. Please help to review. Thanks. Changes from v1: - Add acked-by tag from Tejun. - Drop 2 unnecessary patches. - Move the related variable declarations inside the block together with the code in patch 3. - Move the commit_weights() into ioc_check_iocgs(). - Move more related logics of adjusting base vrate into the ioc_adjust_base_vrate(). - Rename the new functions. Baolin Wang (5): blk-iocost: Fix some typos in comments blk-iocost: Remove unnecessary advance declaration blk-iocost: Move the usage ratio calculation to the correct place blk-iocost: Factor out the active iocgs' state check into a separate function blk-iocost: Factor out the base vrate change into a separate function block/blk-iocost.c | 251 +++++++++++++++++++++++++++++------------------------ 1 file changed, 137 insertions(+), 114 deletions(-) -- 1.8.3.1