Skip to content

blk: introduce block layer helpers to calculate num of queues

Daniel Wagner linux-block linux-nvme linux-scsi lkml virtualization 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250617-isolcpus-queue-counters-42ba0ee77390

Versions newest first

  1. v1 Latest5 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5lib/group_cpus: Let group_cpu_evenly() return the number of initialized masksblock/blk-mq-cpumap.c drivers/virtio/virtio_vdpa.c fs/fuse/virtio_fs.c +3 more+25 -252 replies
2/5blk-mq: add number of queue calc helperblock/blk-mq-cpumap.c include/linux/blk-mq.h+42 -01 reply
3/5nvme-pci: use block layer helpers to calculate num of queuesdrivers/nvme/host/pci.c+3 -21 reply
4/5scsi: use block layer helpers to calculate num of queuesdrivers/scsi/megaraid/megaraid_sas_base.c drivers/scsi/qla2xxx/qla_isr.c drivers/scsi/smartpqi/smartpqi_init.c+16 -141 reply
5/5virtio: blk/scsi: use block layer helpers to calculate num of queuesdrivers/block/virtio_blk.c drivers/scsi/virtio_scsi.c+3 -31 reply

Reviews trailers per patch

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

PatchThomas GleixnerHannes ReineckeMing LeiChristoph HellwigMartin K. PetersenMichael S. TsirkinChaitanya Kulkarni
1/5A-b R-b R-b R-b R-b
2/5R-b R-b R-b R-b
3/5R-b R-b R-b
4/5R-b R-b R-b R-b
5/5R-b R-b R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] blk: introduce block layer helpers to calculate num of queues

I am still working on the change request for the "blk: honor isolcpus configuration" series [1]. Teaching group_cpus_evenly to use the housekeeping mask depending on the context is not a trivial change.

The first part of the series has already been reviewed and doesn't contain any controversial changes, so let's get them processed independely.

[1] https://patch.msgid.link/[email protected]

---
Changes in from https://patch.msgid.link/[email protected]
- limit number of allocated masks to the max allocated number of masks
- commit message improvements
- typo fixes
- formatting fixed
- collected tags

---
Daniel Wagner (5):
lib/group_cpus: Let group_cpu_evenly() return the number of initialized masks
blk-mq: add number of queue calc helper
nvme-pci: use block layer helpers to calculate num of queues
scsi: use block layer helpers to calculate num of queues
virtio: blk/scsi: use block layer helpers to calculate num of queues

 block/blk-mq-cpumap.c                     | 46 +++++++++++++++++++++++++++++--
 drivers/block/virtio_blk.c                |  5 ++--
 drivers/nvme/host/pci.c                   |  5 ++--
 drivers/scsi/megaraid/megaraid_sas_base.c | 15 ++++++----
 drivers/scsi/qla2xxx/qla_isr.c            | 10 +++----
 drivers/scsi/smartpqi/smartpqi_init.c     |  5 ++--
 drivers/scsi/virtio_scsi.c                |  1 +
 drivers/virtio/virtio_vdpa.c              |  9 +++---
 fs/fuse/virtio_fs.c                       |  6 ++--
 include/linux/blk-mq.h                    |  2 ++
 include/linux/group_cpus.h                |  2 +-
 kernel/irq/affinity.c                     | 11 ++++----
 lib/group_cpus.c                          | 16 +++++------
 13 files changed, 89 insertions(+), 44 deletions(-)

---
base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e
change-id: 20250617-isolcpus-queue-counters-42ba0ee77390

Best regards,

Signature · 1 line
Daniel Wagner <[email protected]>