[PATCH v2 for-6.18/block 00/10] blk-mq: cleanup and fixes for updating nr_requests

Yu Kuai posted 10 patches 3 weeks, 1 day ago
Documentation/ABI/stable/sysfs-block | 14 ++----
block/blk-mq-sched.c                 | 14 ++----
block/blk-mq-sched.h                 |  2 +-
block/blk-mq-tag.c                   | 53 ---------------------
block/blk-mq.c                       | 71 ++++++++++++++--------------
block/blk-mq.h                       | 18 +++++--
block/blk-sysfs.c                    | 60 ++++++++++++++++++-----
block/elevator.c                     |  3 +-
8 files changed, 112 insertions(+), 123 deletions(-)
[PATCH v2 for-6.18/block 00/10] blk-mq: cleanup and fixes for updating nr_requests
Posted by Yu Kuai 3 weeks, 1 day ago
From: Yu Kuai <yukuai3@huawei.com>

Changes from v1:
 - add comments explaining accessing q->elevator without holding
   elevator_lock in patch 4;
 - add non-shared checking in patch 8;
 - add review tag by Nilay, patch 1-5,7,9,10;

Yu Kuai (10):
  blk-mq: remove useless checking in queue_requests_store()
  blk-mq: remove useless checkings in blk_mq_update_nr_requests()
  blk-mq: check invalid nr_requests in queue_requests_store()
  blk-mq: convert to serialize updating nr_requests with
    update_nr_hwq_lock
  blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()
  blk-mq: split bitmap grow and resize case in
    blk_mq_update_nr_requests()
  blk-mq-sched: add new parameter nr_requests in
    blk_mq_alloc_sched_tags()
  blk-mq: fix potential deadlock while nr_requests grown
  blk-mq: remove blk_mq_tag_update_depth()
  blk-mq: fix stale nr_requests documentation

 Documentation/ABI/stable/sysfs-block | 14 ++----
 block/blk-mq-sched.c                 | 14 ++----
 block/blk-mq-sched.h                 |  2 +-
 block/blk-mq-tag.c                   | 53 ---------------------
 block/blk-mq.c                       | 71 ++++++++++++++--------------
 block/blk-mq.h                       | 18 +++++--
 block/blk-sysfs.c                    | 60 ++++++++++++++++++-----
 block/elevator.c                     |  3 +-
 8 files changed, 112 insertions(+), 123 deletions(-)

-- 
2.39.2
Re: [PATCH v2 for-6.18/block 00/10] blk-mq: cleanup and fixes for updating nr_requests
Posted by Jens Axboe 3 weeks, 1 day ago
On Wed, 10 Sep 2025 16:04:35 +0800, Yu Kuai wrote:
> Changes from v1:
>  - add comments explaining accessing q->elevator without holding
>    elevator_lock in patch 4;
>  - add non-shared checking in patch 8;
>  - add review tag by Nilay, patch 1-5,7,9,10;
> 
> Yu Kuai (10):
>   blk-mq: remove useless checking in queue_requests_store()
>   blk-mq: remove useless checkings in blk_mq_update_nr_requests()
>   blk-mq: check invalid nr_requests in queue_requests_store()
>   blk-mq: convert to serialize updating nr_requests with
>     update_nr_hwq_lock
>   blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()
>   blk-mq: split bitmap grow and resize case in
>     blk_mq_update_nr_requests()
>   blk-mq-sched: add new parameter nr_requests in
>     blk_mq_alloc_sched_tags()
>   blk-mq: fix potential deadlock while nr_requests grown
>   blk-mq: remove blk_mq_tag_update_depth()
>   blk-mq: fix stale nr_requests documentation
> 
> [...]

Applied, thanks!

[01/10] blk-mq: remove useless checking in queue_requests_store()
        commit: dc1dd13d44fa4e4d466476c0f3517c1230c237e4
[02/10] blk-mq: remove useless checkings in blk_mq_update_nr_requests()
        commit: 8bd7195fea6d9662aa3b32498a3828bfd9b63185
[03/10] blk-mq: check invalid nr_requests in queue_requests_store()
        commit: b46d4c447db76e36906ed59ebb9b3ef8f3383322
[04/10] blk-mq: convert to serialize updating nr_requests with update_nr_hwq_lock
        commit: 626ff4f8ebcb7207f01e7810acb85812ccf06bd8
[05/10] blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()
        commit: 7f2799c546dba9e12f9ff4d07936601e416c640d
[06/10] blk-mq: split bitmap grow and resize case in blk_mq_update_nr_requests()
        commit: e63200404477456ec60c62dd8b3b1092aba2e211
[07/10] blk-mq-sched: add new parameter nr_requests in blk_mq_alloc_sched_tags()
        commit: 6293e336f6d7d3f3415346ce34993b3398846166
[08/10] blk-mq: fix potential deadlock while nr_requests grown
        commit: b86433721f46d934940528f28d49c1dedb690df1
[09/10] blk-mq: remove blk_mq_tag_update_depth()
        commit: 9784041145796994f2b21f4c7e628d7c9db762f4
[10/10] blk-mq: fix stale nr_requests documentation
        commit: a75fe12fa2e2f96b619f25b8cda1fdef6d616ab1

Best regards,
-- 
Jens Axboe