[PATCH v8 0/2] nvme-tcp: allow setting per-queue io_cpu through sysfs
Saravanan D
saravanand at crusoe.ai
Sat Nov 7 01:53:35 PST 2026
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/cover.1793800758.git.saravanand@crusoe.ai/
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
--
2.56.0
More information about the Linux-nvme
mailing list