Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp627022rwb; Thu, 22 Sep 2022 04:35:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZLL7gt0WEGXCb8W37EkrdQe1q7DVGyUy7IOdruZmfpZSQh8JKudshUTUEp3EcUmG0RTPd X-Received: by 2002:aa7:c415:0:b0:44d:f432:3e84 with SMTP id j21-20020aa7c415000000b0044df4323e84mr2873007edq.56.1663846531090; Thu, 22 Sep 2022 04:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663846531; cv=none; d=google.com; s=arc-20160816; b=XBnvZcJAnL8BczCRjj1WdmRMkdqvmP6gC1SmaHRmjh4mwTtN2I4DNykTzDlliPsiXI z31gBe+20ilRmS+4IEnYyDdNcNCik09p0QTScJlfpzFXCyfmp4xpL7hQHmX3YCuXMKEV CPS2H6uFMeQh2Ew5ASOuznA+ynBLtQ3sHnQZHTZ6hDZp1xJvRLpQ5ufsz8ZOZKefDhxp 6q9kU3ps3gP8eTrFDrQp8F90oirSd4Scn1D2YHYtWD7jmBIT6Bzf4y7cioin0skzuef1 FV4LM4ZYaVAJnVbXRkRRLzSzme6gzDvfo/p1tGSdINoglqvUxxtwT4VvSdzgYwbSX14a ORvA== 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 :message-id:date:subject:cc:to:from; bh=yn0s6nalYYkIcik8GIly+pcb6YzoGrJSa2dAwwi1e0E=; b=bTkeXy9JNxigEPh6koGEGN9WEYWu1Ao5WfKF/L/YX93A7ISvMlqCxeBr0lMmRChRZk LOUkCdOVyuD1biX2yAjjl15qA+K3FOzOiDYiNL5vFEGLMPtgSQhVPzhtDvh6zdyMy+GK XHqAl+LfJAnpWnkh6wtJbYarG7KCoYiselPO9X6RgNdUiiKVZiJNxhn+j6Pa8koFSIsR wEsl5jXeYOy4/aAFW5iJoc/B8Gry5/BndIXikSZUrx8ja/YmM+jJxW2Zw+pZcydWpDaj yQ7sFKHN94jdInlbwVkvyl/t0Vxsmv7wLq6nQ9rrkCc0anwjeg2gV/c3TprFlOV6o01D 67Pw== 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 k23-20020a508ad7000000b0044eb578b565si5254736edk.102.2022.09.22.04.35.00; Thu, 22 Sep 2022 04:35:31 -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 S230200AbiIVLZS (ORCPT + 99 others); Thu, 22 Sep 2022 07:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbiIVLZO (ORCPT ); Thu, 22 Sep 2022 07:25:14 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F7E3ABF20; Thu, 22 Sep 2022 04:25:13 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MYCWJ5mXhzMpSn; Thu, 22 Sep 2022 19:20:28 +0800 (CST) Received: from kwepemm600009.china.huawei.com (7.193.23.164) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 19:25:11 +0800 Received: from huawei.com (10.175.127.227) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 19:25:10 +0800 From: Yu Kuai To: , , CC: , , , , Subject: [PATCH v3 0/5] blk-wbt: simple improvment to enable wbt correctly Date: Thu, 22 Sep 2022 19:35:53 +0800 Message-ID: <20220922113558.1085314-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600009.china.huawei.com (7.193.23.164) 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 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 (5): wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabled elevator: add new field flags in struct elevator_queue block, bfq: don't disable wbt if CONFIG_BFQ_GROUP_IOSCHED is disabled blk-wbt: don't enable throttling if default elevator is bfq elevator: remove redundant code in elv_unregister_queue() block/bfq-iosched.c | 6 +++++- block/blk-sysfs.c | 9 ++++++++- block/blk-wbt.c | 15 ++++++++++++++- block/blk-wbt.h | 5 +++++ block/elevator.c | 8 ++------ block/elevator.h | 5 ++++- 6 files changed, 38 insertions(+), 10 deletions(-) -- 2.31.1