Message ID | 20230219104309.1511562-10-shikemeng@huaweicloud.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp656445wrn; Sat, 18 Feb 2023 18:43:29 -0800 (PST) X-Google-Smtp-Source: AK7set8ZQcIqHYG3vYGBqsyXpCuSW9hmkNAfEWf7kTNKVFgfdZ4Z5/BggQcqQIQkKT7qS+isLM59 X-Received: by 2002:a17:903:22c8:b0:198:fded:3b69 with SMTP id y8-20020a17090322c800b00198fded3b69mr1775469plg.53.1676774609184; Sat, 18 Feb 2023 18:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676774609; cv=none; d=google.com; s=arc-20160816; b=Ef9f3uDE0WokB1B6jA3ZOI/6oS8hkChIBGL9InxR0pitwRc43lhCLOuv5aN7avKHhu rSaA22wACHZD2rGt49j96H32+aftsoAhpqwOCfjuMJbaUHK4EUm5QD1aL1xob50wfoR7 3uG5KccGNk2ShghC2f2s60DtfzLXeYgBuhXlCvsxjw8X1LY62zgipLOoiVduBAmwCk/b 4aDKeJQWmqYpnYDnWAjK4pOW8kAZIodRmcCtDs9d2Vs442KA8sCp2b1LoYzBMaXPbRiI lyJ74aMKaVWzWIfcDvvbn/wJcTADohOynVecU1kDLzP1+NvS4a/K341lyjnQurlqz/M9 maeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=h7iZB96o4gyhEX1MqOk3He7DiPBn6dm5xCkbPPgfAnE=; b=BplQ9xpjhj/6QYJ7aqZHaaS28/g5mLkpIz/DKkvWz+OSQ7jSFuKcVPb3FVfAKcyzBS 4Qk6PXH8LjM4YsRY6OPJBXXqSk+leBpTx/lcXqHfKmfmpKSG9gZbQxzLYOLFObAtahdr Cz8SmvgKz8O+/3/GAHD0BqBzKjxjV4DqtVW+ZmYTQmJoFFiJqezL264QVMuXtsF3gy9R AaPZVtWkbVTN8UjBYzKdIbY+us6uYrxIBS8SIkgBPiQo9YQSC/jGtQj/rWLzGCnY6L9B fmH6nUFSzM6ga29u4VzZ0WLfM1Df8JJAacc4+20DTSQELCiJzh10qSlMwZrIEplpowEC 459Q== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b001989ca6cec8si5917479plh.149.2023.02.18.18.43.16; Sat, 18 Feb 2023 18:43:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbjBSCls (ORCPT <rfc822;nanshango2@gmail.com> + 99 others); Sat, 18 Feb 2023 21:41:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjBSCl2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 18 Feb 2023 21:41:28 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F95512863; Sat, 18 Feb 2023 18:41:27 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4PK8v70DGSz4f3pBv; Sun, 19 Feb 2023 10:41:23 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP2 (Coremail) with SMTP id Syh0CgBH7utQjPFjPmleDw--.7604S11; Sun, 19 Feb 2023 10:41:25 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: paolo.valente@linaro.org, axboe@kernel.dk, jack@suse.cz Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, shikemeng@huaweicloud.com Subject: [PATCH 09/17] block, bfq: stop to detect queue as waker queue if it already is now Date: Sun, 19 Feb 2023 18:43:01 +0800 Message-Id: <20230219104309.1511562-10-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230219104309.1511562-1-shikemeng@huaweicloud.com> References: <20230219104309.1511562-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgBH7utQjPFjPmleDw--.7604S11 X-Coremail-Antispam: 1UD129KBjvdXoW7Xry5Ar18Gw13Cr1fJF4kXrb_yoWfXrbEya yFgr18Aan8Jay5Cr1YvryUtwnrua18Xw1kJFs8tFnrWFn8J3Z5C3sFqrW3AFs8WayxWFya yrsaq3Z8tr4IyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbDAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28IrcIa0xkI8V A2jI8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJ M28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2I x0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK 6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4 xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8 JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20V AGYxC7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AK xVWxJVW8Jr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0pRvJPtU UUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, SPF_HELO_NONE,SPF_NONE 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?1758225612353631044?= X-GMAIL-MSGID: =?utf-8?q?1758225612353631044?= |
Series |
Some bugfix and cleanup patches for bfq
|
|
Commit Message
Kemeng Shi
Feb. 19, 2023, 10:43 a.m. UTC
If last_completed_rq_bfqq is the current waker queue of bfqq, it's no
meaning to execute the detection logic as nothing will change whether
detection successes or fails.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
---
block/bfq-iosched.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 7a0283f08aed..0a11a381ee7d 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -2147,7 +2147,8 @@ static void bfq_check_waker(struct bfq_data *bfqd, struct bfq_queue *bfqq, bfq_bfqq_has_short_ttime(bfqq) || now_ns - bfqd->last_completion >= 4 * NSEC_PER_MSEC || bfqd->last_completed_rq_bfqq == &bfqd->oom_bfqq || - bfqq == &bfqd->oom_bfqq) + bfqq == &bfqd->oom_bfqq || + bfqd->last_completed_rq_bfqq == bfqq->waker_bfqq) return; /*