Skip to content

blk-mq: update_nr_hw_queues related improvement & bugfix

Ming Lei linux-block 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 3 repliesApplied
  2. v36 patches 11 repliesSuperseded
  3. v26 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches16 repliesSuperseded

Changes in v4 from the cover letter

- add reviewed-by tag
- convert one plain loop into xa_for_each_start(), as suggested by Christoph

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6blk-mq: figure out correct numa node for hw queueblock/blk-mq.c+30 -60 replies
2/6blk-mq: simplify reallocation of hw ctxs a bitblock/blk-mq.c+14 -190 replies
3/6blk-mq: reconfigure poll after queue map is changedblock/blk-mq.c+13 -30 replies
4/6block: mtip32xx: don't touch q->queue_hw_ctxdrivers/block/mtip32xx/mtip32xx.c+1 -30 replies
5/6blk-mq: prepare for implementing hctx table via xarrayblock/blk-mq-debugfs.c block/blk-mq-sched.c block/blk-mq-sysfs.c +3 more+36 -290 replies
6/6blk-mq: manage hctx map via xarrayblock/blk-mq-tag.c block/blk-mq.c block/blk-mq.h +2 more+28 -432 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchHannes ReineckeChristoph Hellwig
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-b

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/6] blk-mq: update_nr_hw_queues related improvement & bugfix

Hi,

The 1st patch figures out correct numa node for each kind of hw queue.

The 2nd patch simplifies reallocation of q->queue_hw_ctx a bit.

The 3rd patch re-configures poll capability after queue map is changed.

The 4th patch changes mtip32xx to avoid to refer to q->queue_hw_ctx directly.

The 5th & 6th patches fix use-after-free on q->queue_hw_ctx.

V4:
- add reviewed-by tag
- convert one plain loop into xa_for_each_start(), as suggested by Christoph

V3:
- fix smatch warnings reported by kernel test robot (5/6)

V2:
- use xa_for_each() to implement queue_for_each_hw_ctx(5/6 6/6)
- patch style change(1/6)
- rename as suggested by Christoph(3/6)

Ming Lei (6):
blk-mq: figure out correct numa node for hw queue
blk-mq: simplify reallocation of hw ctxs a bit
blk-mq: reconfigure poll after queue map is changed
block: mtip32xx: don't touch q->queue_hw_ctx
blk-mq: prepare for implementing hctx table via xarray
blk-mq: manage hctx map via xarray

 block/blk-mq-debugfs.c            |   6 +-
 block/blk-mq-sched.c              |   9 +-
 block/blk-mq-sysfs.c              |  16 +--
 block/blk-mq-tag.c                |   4 +-
 block/blk-mq.c                    | 165 ++++++++++++++++--------------
 block/blk-mq.h                    |   2 +-
 drivers/block/mtip32xx/mtip32xx.c |   4 +-
 drivers/block/rnbd/rnbd-clt.c     |   2 +-
 include/linux/blk-mq.h            |   3 +-
 include/linux/blkdev.h            |   2 +-
 10 files changed, 116 insertions(+), 97 deletions(-)
Signature · 1 line
2.31.1