Skip to content

NFS/RDMA client side connection overhaul

Chuck Lever linux-nfs linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11xprtrdma: Invoke rpcrdma_ep_create() in the connect workernet/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+56 -1030 replies
2/11xprtrdma: Refactor frwr_init_mr()net/sunrpc/xprtrdma/frwr_ops.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+8 -80 replies
3/11xprtrdma: Clean up the post_send pathnet/sunrpc/xprtrdma/backchannel.c net/sunrpc/xprtrdma/frwr_ops.c net/sunrpc/xprtrdma/transport.c +2 more+18 -180 replies
4/11xprtrdma: Refactor rpcrdma_ep_connect() and rpcrdma_ep_disconnect()net/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+20 -200 replies
5/11xprtrdma: Allocate Protection Domain in rpcrdma_ep_create()net/sunrpc/xprtrdma/verbs.c+10 -163 replies
6/11xprtrdma: Invoke rpcrdma_ia_open in the connect workerinclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c +1 more+20 -1430 replies
7/11xprtrdma: Remove rpcrdma_ia::ri_flagsnet/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+13 -670 replies
8/11xprtrdma: Disconnect on flushed completioninclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/frwr_ops.c net/sunrpc/xprtrdma/verbs.c +1 more+47 -180 replies
9/11xprtrdma: Merge struct rpcrdma_ia into struct rpcrdma_epinclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/backchannel.c net/sunrpc/xprtrdma/frwr_ops.c +4 more+246 -2610 replies
10/11xprtrdma: Extract sockaddr from struct rdma_cm_idinclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/verbs.c+67 -443 replies
11/11xprtrdma: kmalloc rpcrdma_ep separate from rpcrdma_xprtinclude/trace/events/rpcrdma.h net/sunrpc/xprtrdma/backchannel.c net/sunrpc/xprtrdma/frwr_ops.c +4 more+143 -1910 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/11] NFS/RDMA client side connection overhaul

Howdy.

I've had reports (and personal experience) where the Linux NFS/RDMA client waits for a very long time after a disruption of the network or NFS server.

There is a disconnect time wait in the Connection Manager which blocks the RPC/RDMA transport from tearing down a connection for a few minutes when the remote cannot respond to DREQ messages.

An RPC/RDMA transport has only one slot for connection state, so the transport is prevented from establishing a fresh connection until the time wait completes.

This patch series refactors the connection end point data structures to enable one active and multiple zombie connections. Now, while a defunct connection is waiting to die, it is separated from the transport, clearing the way for the immediate creation of a new connection. Clean-up of the old connection's data structures and resources then completes in the background.

Well, that's the idea, anyway. Review and comments welcome. Hoping this can be merged in v5.7.

---

Chuck Lever (11):
xprtrdma: Invoke rpcrdma_ep_create() in the connect worker
xprtrdma: Refactor frwr_init_mr()
xprtrdma: Clean up the post_send path
xprtrdma: Refactor rpcrdma_ep_connect() and rpcrdma_ep_disconnect()
xprtrdma: Allocate Protection Domain in rpcrdma_ep_create()
xprtrdma: Invoke rpcrdma_ia_open in the connect worker
xprtrdma: Remove rpcrdma_ia::ri_flags
xprtrdma: Disconnect on flushed completion
xprtrdma: Merge struct rpcrdma_ia into struct rpcrdma_ep
xprtrdma: Extract sockaddr from struct rdma_cm_id
xprtrdma: kmalloc rpcrdma_ep separate from rpcrdma_xprt

 include/trace/events/rpcrdma.h    |   97 ++---
 net/sunrpc/xprtrdma/backchannel.c |    8 
 net/sunrpc/xprtrdma/frwr_ops.c    |  152 ++++----
 net/sunrpc/xprtrdma/rpc_rdma.c    |   32 +-
 net/sunrpc/xprtrdma/transport.c   |   72 +---
 net/sunrpc/xprtrdma/verbs.c       |  681 ++++++++++++++-----------------------
 net/sunrpc/xprtrdma/xprt_rdma.h   |   89 ++---
 7 files changed, 445 insertions(+), 686 deletions(-)

--
Chuck Lever