[PATCH v3 0/5] blk-wbt: simple improvment to enable wbt correctly

From: Yu Kuai
Date: Thu Sep 22 2022 - 07:25:21 EST


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