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

Daniel Wagner posted 5 patches 3 months, 3 weeks ago
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(-)
[PATCH 0/5] blk: introduce block layer helpers to calculate num of queues
Posted by Daniel Wagner 3 months, 3 weeks ago
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/20250424-isolcpus-io-queues-v6-0-9a53a870ca1f@kernel.org

Signed-off-by: Daniel Wagner <wagi@kernel.org>
---
Changes in from https://patch.msgid.link/20250424-isolcpus-io-queues-v6-0-9a53a870ca1f@kernel.org
- 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,
-- 
Daniel Wagner <wagi@kernel.org>
Re: [PATCH 0/5] blk: introduce block layer helpers to calculate num of queues
Posted by Jens Axboe 3 months, 1 week ago
On Tue, 17 Jun 2025 15:43:22 +0200, Daniel Wagner wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/5] lib/group_cpus: Let group_cpu_evenly() return the number of initialized masks
      commit: b6139a6abf673029008f80d42abd3848d80a9108
[2/5] blk-mq: add number of queue calc helper
      commit: 3f27c1de5df265f9d8edf0cc5d75dc92e328484a
[3/5] nvme-pci: use block layer helpers to calculate num of queues
      commit: 4082c98c1fefd276b34ba411ac59c50b336dfbb1
[4/5] scsi: use block layer helpers to calculate num of queues
      commit: 94970cfb5f10ea381df8c402d36c5023765599da
[5/5] virtio: blk/scsi: use block layer helpers to calculate num of queues
      commit: 0a50ed0574ffe853f15c3430794b5439b2e6150a

Best regards,
-- 
Jens Axboe
Re: [PATCH 0/5] blk: introduce block layer helpers to calculate num of queues
Posted by Daniel Wagner 3 months, 1 week ago
Hi Jens,

On Tue, Jun 17, 2025 at 03:43:22PM +0200, Daniel Wagner wrote:
> 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/20250424-isolcpus-io-queues-v6-0-9a53a870ca1f@kernel.org

Would you mind to route this series via your tree? There are changes in
several different trees though all the patches have been acked/reviewed
by the corresponding maintainers. Would be great to get some weeks in
'next' so that this series gets some more testing.

Thanks a lot,
Daniel