Skip to content

Improve changing the number of hardware queues

Bart Van Assche linux-block 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 1 replyIn review
  2. v38 patches 9 repliesSuperseded
  3. v28 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches4 repliesSuperseded

Changes in v4 from the cover letter

- Added more Reviewed-by tags.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8blk-mq: Fix a comment in include/linux/blk-mq.hinclude/linux/blk-mq.h+4 -10 replies
2/8blk-mq: Keep set->nr_hw_queues and set->map[].nr_queues in syncblock/blk-mq.c+8 -00 replies
3/8blk-mq: Fix a recently introduced regression in blk_mq_realloc_hw_ctxs()block/blk-mq.c+0 -10 replies
4/8null_blk: Suppress an UBSAN complaint triggered when setting 'memory_backed'drivers/block/null_blk_main.c+1 -10 replies
5/8null_blk: Fix changing the number of hardware queuesdrivers/block/null_blk_main.c+66 -370 replies
6/8null_blk: Fix the null_add_dev() error pathdrivers/block/null_blk_main.c+1 -00 replies
7/8null_blk: Handle null_add_dev() failures properlydrivers/block/null_blk_main.c+6 -10 replies
8/8null_blk: Add support for init_hctx() fault injectiondrivers/block/null_blk_main.c+11 -00 replies

Reviews trailers per patch

6 of 8 patches have a Reviewed-by or Acked-by.

PatchChaitanya KulkarniMing Lei
1/8R-b
2/8R-b R-b
3/8R-b
4/8R-b
5/8
6/8R-b
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/8] Improve changing the number of hardware queues

Hi Jens,

These patches are what I came up with while analyzing syzbot and blktests complaints related to dynamically changing the number of hardware queues. Please consider these patches for the upstream kernel.

Thanks,

Bart.

Changes compared to v3:
- Added more Reviewed-by tags.

Changes compared to v2:
- Changed patch 2/8 such that .nr_queues is only set if nr_maps == 1.

Changes compared to v1:
- Reworked patch 2/8 as requested by Ming.
- Added three new null_blk patches.

Bart Van Assche (8):
blk-mq: Fix a comment in include/linux/blk-mq.h
blk-mq: Keep set->nr_hw_queues and set->map[].nr_queues in sync
blk-mq: Fix a recently introduced regression in
blk_mq_realloc_hw_ctxs()
null_blk: Suppress an UBSAN complaint triggered when setting
'memory_backed'
null_blk: Fix changing the number of hardware queues
null_blk: Fix the null_add_dev() error path
null_blk: Handle null_add_dev() failures properly
null_blk: Add support for init_hctx() fault injection

 block/blk-mq.c                |   9 ++-
 drivers/block/null_blk_main.c | 124 +++++++++++++++++++++++-----------
 include/linux/blk-mq.h        |   5 +-
 3 files changed, 97 insertions(+), 41 deletions(-)