From patchwork Fri Sep 30 03:19:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Kuai X-Patchwork-Id: 12994850 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A27B4C433FE for ; Fri, 30 Sep 2022 02:57:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbiI3C5L (ORCPT ); Thu, 29 Sep 2022 22:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiI3C5J (ORCPT ); Thu, 29 Sep 2022 22:57:09 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3261B104623; Thu, 29 Sep 2022 19:57:07 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4MdvwL4Kb3zKJB2; Fri, 30 Sep 2022 10:54:58 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP2 (Coremail) with SMTP id Syh0CgAnenP_WjZjTFJvBg--.12213S4; Fri, 30 Sep 2022 10:57:04 +0800 (CST) From: Yu Kuai To: jack@suse.cz, hch@infradead.org, ebiggers@kernel.org, paolo.valente@linaro.org, axboe@kernel.dk Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yukuai1@huaweicloud.com, yi.zhang@huawei.com Subject: [PATCH v4 0/6] blk-wbt: simple improvment to enable wbt correctly Date: Fri, 30 Sep 2022 11:19:00 +0800 Message-Id: <20220930031906.4164306-1-yukuai1@huaweicloud.com> X-Mailer: git-send-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IevJa73UjIFyTuYvjfUoO J5UUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org From: Yu Kuai changes in v4: - remove patch 3 from v3 - add patch 2,3 in v4 changes in v3: - instead of check elevator name, add a flag in elevator_queue, as suggested by Christoph. - add patch 3 and patch 5 to this patchset. changes in v2: - define new api if wbt config is not enabled in patch 1. Yu Kuai (6): elevator: remove redundant code in elv_unregister_queue() blk-wbt: remove unnecessary check in wbt_enable_default() blk-wbt: make enable_state more accurate blk-wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabled elevator: add new field flags in struct elevator_queue blk-wbt: don't enable throttling if default elevator is bfq block/bfq-iosched.c | 2 ++ block/blk-sysfs.c | 6 +++++- block/blk-wbt.c | 26 ++++++++++++++++++++++---- block/blk-wbt.h | 17 ++++++++++++----- block/elevator.c | 8 ++------ block/elevator.h | 5 ++++- 6 files changed, 47 insertions(+), 17 deletions(-)