Skip to content

nvme-tcp: allow setting per-queue io_cpu through sysfs

Saravanan D linux-block linux-nvme lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 4 repliesIn review
  2. v72 patches 3 repliesSuperseded
  3. v62 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v52 patches8 repliesSuperseded
v42 patches6 repliesSuperseded
v31 patch6 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme: add per-queue sysfs directoriesdrivers/nvme/host/core.c drivers/nvme/host/nvme.h drivers/nvme/host/sysfs.c+127 -02 replies
2/2nvme-tcp: allow setting per-queue io_cpu through sysfsDocumentation/ABI/stable/sysfs-nvme drivers/nvme/host/tcp.c+178 -202 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNilay ShroffHannes Reinecke
SeriesR-b
1/2R-b R-b
2/2R-b R-b

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

Read the v8 thread

Cover letter [PATCH v8 0/2] nvme-tcp: allow setting per-queue io_cpu through sysfs

On hosts that partition their CPUs after connect time, the connect time io_cpu selection can place a queue's socket work on CPUs owned by another workload. This series lets a control plane set each queue's io_cpu through /sys/class/nvme/nvmeX/queues/<qid>/. Patch 1 adds the core helpers, patch 2 the nvme-tcp attributes.

Changes since v7 [1]:
- nvme_add_queue_info() now calls kobject_del() when sysfs_create_groups() fails, so the failed queue's <qid> directory is removed before the error returns (Sashiko, Daniel).
- Rebased onto the current nvme-7.4.

The blktests patch covering the interface follows in this thread. It is now nvme/081, since other pending blktests patches use nvme/076 to nvme/080.

[1] https://lore.kernel.org/linux-nvme/[email protected]/

Saravanan D (2):
nvme: add per-queue sysfs directories
nvme-tcp: allow setting per-queue io_cpu through sysfs

 Documentation/ABI/stable/sysfs-nvme |  31 ++++++
 drivers/nvme/host/core.c            |  12 ++
 drivers/nvme/host/nvme.h            |  25 +++++
 drivers/nvme/host/sysfs.c           |  90 +++++++++++++++
 drivers/nvme/host/tcp.c             | 167 ++++++++++++++++++++++++----
 5 files changed, 305 insertions(+), 20 deletions(-)

base-commit: 687f3014afcd5826fa3d8f40b445f647b5a379b6

Signature · 1 line
2.56.0