[PATCH blktests v2] nvme/081: test the per-queue io_cpu sysfs attribute

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Sat Nov 14 01:10:24 PST 2026


On Nov 10, 2026 / 11:50, Saravanan D wrote:
> nvme-tcp exposes /sys/class/nvme/nvmeX/queues/<qid>/io_cpu and managed,
> so a control plane can choose the CPU that runs each I/O queue's socket
> work [1]. Test that
> 
>   - io_cpu reads back a written CPU and rejects invalid values
>   - managed is read only and turns 0 once io_cpu is written
>   - an assignment and the queue directories survive a controller reset
>   - the queue directories follow the queue count as attr_qid_max
>     shrinks and grows it
>   - removing the controller while io_cpu is written completes
> 
> The test skips when the kernel does not have the queues/ directory or
> the io_cpu attribute.
> 
> [1] https://lore.kernel.org/linux-nvme/cover.1794015622.git.saravanand@crusoe.ai/
> 
> Assisted-by: Claude:claude-opus-5-5 [Claude Code]
> Signed-off-by: Saravanan D <saravanand at crusoe.ai>

Thanks for the patch. It looks good to me. I would like to wait for the
corresponding kernel side patches get applied. Please ping me when the
kernel patches land on the Linus master branch,



More information about the Linux-nvme mailing list