Skip to content

NFS/RDMA client-side patches proposed for v4.12

Chuck Lever linux-nfs linux-rdma 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 0 repliesNew
  2. v213 patches 0 repliesSuperseded
  3. v1 RFC11 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Rebased on v4.11-rc6

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13xprtrdma: Cancel refresh worker during buffer shutdownnet/sunrpc/xprtrdma/verbs.c+1 -00 replies
2/13sunrpc: Export xprt_force_disconnect()net/sunrpc/xprt.c+1 -00 replies
3/13xprtrdma: Detect unreachable NFS/RDMA servers more reliablynet/sunrpc/xprtrdma/transport.c+22 -00 replies
4/13xprtrdma: Refactor rpcrdma_ia_open()net/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+32 -270 replies
5/13xprtrdma: Use same device when mapping or syncing DMA buffersnet/sunrpc/xprtrdma/rpc_rdma.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+14 -90 replies
6/13xprtrdma: Support unplugging an HCA from under an NFS mountnet/sunrpc/xprtrdma/transport.c net/sunrpc/xprtrdma/verbs.c net/sunrpc/xprtrdma/xprt_rdma.h+101 -90 replies
7/13xprtrdma: Refactor rpcrdma_ep_connectnet/sunrpc/xprtrdma/verbs.c+63 -460 replies
8/13xprtrdma: Restore transport after device removalnet/sunrpc/xprtrdma/verbs.c+48 -00 replies
9/13xprtrdma: Revert commit d0f36c46deeanet/sunrpc/xprtrdma/verbs.c+7 -260 replies
10/13xprtrdma: Annotate receive workqueuenet/sunrpc/xprtrdma/verbs.c+1 -10 replies
11/13xprtrdma: Squelch ENOBUFS warningsnet/sunrpc/xprtrdma/rpc_rdma.c+5 -30 replies
12/13sunrpc: Fix xdr_init_decode_pages() documenting commentnet/sunrpc/xdr.c+1 -10 replies
13/13xprtrdma: Remove rpcrdma_buffer::rb_poolnet/sunrpc/xprtrdma/xprt_rdma.h+0 -10 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 00/13] NFS/RDMA client-side patches proposed for v4.12

Hi Anna-

These have seen no changes since v2. IMO these are ready for you to consider for your linux-next branch. The two main improvements in this series are:

1. Break RPC-over-RDMA connections after an RPC timeout.

This gives the client's CM an opportunity to perform server and network path rediscovery before retrying the timed-out RPC.

This design was selected because it is simple, and does not make any changes to the normal RPC Call send hot path. Also, note the logic already in xprt_rdma_send_request() that breaks the connection anyway, just before sending a retransmit.

Internal testing at Oracle has demonstrated this logic is effective.

2. Support unloading the driver of the underlying device.

Full support for the DEVICE_REMOVAL CM upcall is implemented in the client-side RPC-over-RDMA consumer. Devesh's workaround is reverted, since it is now no longer necessary.

In addition, support is added for restoring transport operation when a new driver is subsequently loaded or when another device is already available with connectivity to the NFS server.

Hopefully this work can be the basis for device hotplug, suspend/resume with NFS/RDMA mounts, and handling device failover.

Available in the "nfs-rdma-for-4.12" topic branch of this git repo:

git://git.linux-nfs.org/projects/cel/cel-2.6.git

Or for browsing:

http://git.linux-nfs.org/?p=cel/cel-2.6.git;a=log;h=refs/heads/nfs-rdma-for-4.12

Changes since v2:
- Rebased on v4.11-rc6

Changes since v1:
- Rebased on v4.11-rc4 + recent non-rdma fixes
- Reordered so bug fixes come first
- Three small new clean ups

---

Chuck Lever (13):
xprtrdma: Cancel refresh worker during buffer shutdown
sunrpc: Export xprt_force_disconnect()
xprtrdma: Detect unreachable NFS/RDMA servers more reliably
xprtrdma: Refactor rpcrdma_ia_open()
xprtrdma: Use same device when mapping or syncing DMA buffers
xprtrdma: Support unplugging an HCA from under an NFS mount
xprtrdma: Refactor rpcrdma_ep_connect
xprtrdma: Restore transport after device removal
xprtrdma: Revert commit d0f36c46deea
xprtrdma: Annotate receive workqueue
xprtrdma: Squelch ENOBUFS warnings
sunrpc: Fix xdr_init_decode_pages() documenting comment
xprtrdma: Remove rpcrdma_buffer::rb_pool

 net/sunrpc/xdr.c                |    2 
 net/sunrpc/xprt.c               |    1 
 net/sunrpc/xprtrdma/rpc_rdma.c  |   12 +
 net/sunrpc/xprtrdma/transport.c |   57 ++++++-
 net/sunrpc/xprtrdma/verbs.c     |  323 ++++++++++++++++++++++++++-------------
 net/sunrpc/xprtrdma/xprt_rdma.h |   22 ++-
 6 files changed, 295 insertions(+), 122 deletions(-)

--
Chuck Lever
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html