[PATCH 00/20] A few bugfix and cleanup patches for bfq-iosched

From: Kemeng Shi
Date: Tue Nov 01 2022 - 05:34:27 EST


This series contain a few patches to fix typo in comment, protect
max_budget from concurrent access and so on. More detail can be
found in the respective changelogs.

Kemeng Shi (20):
block, bfq: fix typo in comment
block, bfq: Update bfqd->max_budget with bfqd->lock held
block, bfq: correct bfq_max_budget and bfq_min_budget
block, bfq: simpfy computation of bfqd->budgets_assigned
block, bfq: recover the "service hole" if enough budget is left
block, bfq: correct interactive weight-raise check in
bfq_set_budget_timeout
block, bfq: simpfy check for interactive bfqq in bfq_update_wr_data
block, bfq: do srt filtering for interactive queues in
bfq_completed_request
block, bfq: remove redundant check if (bfqq->dispatched > 0)
block, bfq: define and use soft_rt, in_burst and wr_or_deserves_wr
only low_latency is enable
block, bfq: remove unnecessary "wr" part of wr_or_deserves_wr
block, bfq: start/restart service_from_wr accumulating correctly
block,bfq: remove redundant nonrot_with_queueing check in
bfq_setup_cooperator
block, bfq: remove redundant oom_bfqq check for bfqq from
bfq_find_close_cooperator
block, bfq: some cleanups for function bfq_pos_tree_add_move
block, bfq: remove unnecessary goto tag in __bfq_weights_tree_remove
block, bfq: remove unnecessary traverse in bfq_add_to_burst
block, bfq: remove unnecessary bfqq->next_rq = NULL in
bfq_remove_request
block, bfq: remove unnecessary local variable __bfqq in
bfq_setup_merge
block, bfq: remove unncessary process_ref check for merged queue in
bfq_setup_merge

block/bfq-iosched.c | 280 +++++++++++++++++++++-----------------------
1 file changed, 133 insertions(+), 147 deletions(-)

--
2.30.0