Skip to content

nvme-rdma: parallelize I/O queue setup

Surabhi Gogte linux-nvme lkml 4 versions – Applied

Status from this message: Thanks, applied to nvme-7.3.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesApplied
  2. v32 patches 5 repliesSuperseded
  3. v21 patch 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

- Fixed formatting.
- Replaced kmalloc_array with kmalloc_objs.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2nvme-rdma: refactor nvme_rdma_alloc_queue() to take a queue pointerdrivers/nvme/host/rdma.c+9 -100 replies
2/2nvme-rdma: parallelize I/O queue allocation and startupdrivers/nvme/host/rdma.c+77 -471 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/2R-b
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] nvme-rdma: parallelize I/O queue setup

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.

---
Changes from v3->v4:
- Fixed formatting.
- Replaced kmalloc_array with kmalloc_objs.

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/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/

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 | 136 ++++++++++++++++++++++++---------------
 1 file changed, 83 insertions(+), 53 deletions(-)
Signature · 1 line
2.54.0