Message ID | 20221101093417.10540-8-shikemeng@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2845670wru; Tue, 1 Nov 2022 02:36:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LGzJoHGH5ndPq7givPG86QC8FDiyKLtZK12clJHabqZkYblX8OiobqDT2gf87DFqec7PO X-Received: by 2002:a17:903:251:b0:186:5613:becf with SMTP id j17-20020a170903025100b001865613becfmr99241plh.46.1667295390039; Tue, 01 Nov 2022 02:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667295390; cv=none; d=google.com; s=arc-20160816; b=BLYfSfwunExcuZ4bzFGAlI+yh7dUcS0Tnf/20GRrRiwM10rXJ8XkTQvTSM/WQqASa2 KQoBMoOeEn6P1+jqSZe0Umx0rU6rojDzRMop96gSeOIANQvUAqjt8kREGvd+PaqSKSGu KBlshumYHqevdLbtoHnbagxrFEy6wIbt2cDMjl0kco8NqUdviziRd1bnG5t377Clv7RA U7ONC6ggg2e7KVZS4dFXUJW34ydW+b84mtrJhwvHEGfrECPXAOTpKfJIRQ9kD14Vts4Z TemN2tGIPstMe/AiQr7VplwsXxlMqfHp7oONSta+pFm1UiFLaRvxeq2EKdZTe6Ce+q2H K+Vw== 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=GtZxyyNZ208dqt8mYIqM2sVUcXt4H5XOo2GKGR5IExM=; b=ENVioWrVQen/VXrnwtYJnGfgHLWVRGOh3KJ+9TvEC1ChrlcW3mZP2HBI4NPSKyNi6z L9HHn4RJHgaayt1SKYf/ZaNjzhPjKkbhbxnvNQyfQoG7DcWyCf/KJWFOah4p5OhYO/XY 8gn62W9DJ1IDhSHLkkAHSXjPy82Bh8xXzfyyE/n1qQ5NpzQmDbpPUPK2CbKUeRW5AI0C sXICuzVzfEP8JPjbMd/HJC/euHG2LrEpi3mY1eOHlXbMw8XVgRqztC6e74qIoBxngGUz kEHtdoV2rO0VBXG/UxvPOpaUElwvgsQwRj+pQdQi+sIHdJp90G2EcP3ydtUkpSi/ZzOR UhNg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a63f502000000b0046f1263abd6si12467827pgh.661.2022.11.01.02.36.16; Tue, 01 Nov 2022 02:36:30 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbiKAJew (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 05:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbiKAJe0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 05:34:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02DA018B13; Tue, 1 Nov 2022 02:34:26 -0700 (PDT) Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N1l8m1Xl4zRnsP; Tue, 1 Nov 2022 17:29:28 +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; Tue, 1 Nov 2022 17:34:23 +0800 From: Kemeng Shi <shikemeng@huawei.com> To: <paolo.valente@linaro.org>, <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <shikemeng@huawei.com> Subject: [PATCH 07/20] block, bfq: simpfy check for interactive bfqq in bfq_update_wr_data Date: Tue, 1 Nov 2022 17:34:04 +0800 Message-ID: <20221101093417.10540-8-shikemeng@huawei.com> X-Mailer: git-send-email 2.14.1.windows.1 In-Reply-To: <20221101093417.10540-1-shikemeng@huawei.com> References: <20221101093417.10540-1-shikemeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.178.129] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748285930829396334?= X-GMAIL-MSGID: =?utf-8?q?1748285930829396334?= |
Series |
A few bugfix and cleanup patches for bfq-iosched
|
|
Commit Message
Kemeng Shi
Nov. 1, 2022, 9:34 a.m. UTC
The bfqq->wr_coeff will be set to bfqd->bfq_wr_coeff if bfqq is in
interactive weight raising. So we can simpfy interactive weight raising
check in function bfq_update_wr_data.
Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
---
block/bfq-iosched.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 20ae52882235..15e7d6c6fa83 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -4997,8 +4997,7 @@ static void bfq_update_wr_data(struct bfq_data *bfqd, struct bfq_queue *bfqq) bfqq->entity.prio_changed = 1; } } - if (bfqq->wr_coeff > 1 && - bfqq->wr_cur_max_time != bfqd->bfq_wr_rt_max_time && + if (bfqq->wr_coeff == bfqd->bfq_wr_coeff && bfqq->service_from_wr > max_service_from_wr) { /* see comments on max_service_from_wr */ bfq_bfqq_end_wr(bfqq);