[PATCH v3 0/2] nvme-rdma: parallelize I/O queue setup

Hannes Reinecke hare at suse.de
Wed Jul 1 04:08:09 PDT 2026


On 6/25/26 11:27 PM, Surabhi Gogte wrote:
> This patch series parallelizes nvme-rdma connection and reconnection by
> setting up I/O queues in parallel instead of sequentially. Allocation and
> startup of each queue are combined into a single per-queue async work
> item, so per-queue connection latency overlaps across all queues. This
> matters most on high-core-count hosts with many I/O queues, where serial
> setup dominates connect time.
> 
> Patch 1 is a preparatory refactor: nvme_rdma_alloc_queue() takes a queue
> pointer so allocation and startup can be folded into a single async
> worker.
> 
> Patch 2 contains the implementation for async setup of I/O queues.
> 
> Testing on a 64-core host with 64 I/O queues shows nvme-rdma connection
> time reduced from ~1.4s to 416ms.
> 
> Signed-off-by: Surabhi Gogte <sgogte at purestorage.com>
> ---
> Changes from v2->v3:
> - Split the series into two patches: extract the nvme_rdma_alloc_queue()
>    refactor into a separate preparatory patch.
> - Replace the atomic error flag in struct nvme_rdma_ctrl with a per-work
>    nvme_rdma_setup_ctx { queue, err } struct.
> - Fix formatting changes regarding line overflow indentation and nesting.
> 
> Changes from v1->v2:
> - Remove separate workqueue and use the async API instead.
> 
> Previous versions:
> v1: https://lore.kernel.org/all/20260529001354.1003640-1-sgogte@purestorage.com/
> v2: https://lore.kernel.org/all/20260604195321.2232838-1-sgogte@purestorage.com/
> 
> Surabhi Gogte (2):
>    nvme-rdma: refactor nvme_rdma_alloc_queue() to take a queue pointer
>    nvme-rdma: parallelize I/O queue allocation and startup
> 
>   drivers/nvme/host/rdma.c | 135 ++++++++++++++++++++++++---------------
>   1 file changed, 82 insertions(+), 53 deletions(-)
> 
I would think that the same argument holds for nvme-tcp as the drivers
are pretty similar. Can you update nvme-tcp, too, to take advantage of
parallel I/O queue setup?

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list