Skip to content

Improve failover times for pNFS mirroring

[email protected] linux-nfs 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Don't override connect timeouts in rpc_clnt_add_xprt
- Don't override specified connect timeouts at setup

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5SUNRPC: Set the TCP_SYNCNT to match the socket timeoutnet/sunrpc/xprtsock.c+14 -00 replies
2/5SUNRPC: Refactor and simplify connect timeoutnet/sunrpc/xprtsock.c+21 -130 replies
3/5SUNRPC: Allow specification of TCP client connect timeout at setupinclude/linux/sunrpc/clnt.h include/linux/sunrpc/xprt.h net/sunrpc/clnt.c +1 more+11 -20 replies
4/5SUNRPC: Don't override connect timeouts in rpc_clnt_add_xprt()net/sunrpc/clnt.c+5 -00 replies
5/5NFS/pNFS: Set the connect timeout for the pNFS flexfiles driverfs/nfs/client.c fs/nfs/internal.h fs/nfs/nfs3client.c +1 more+10 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/5] Improve failover times for pNFS mirroring

From: Trond Myklebust <[email protected]>

When a data server goes down, it can currently take 3 minutes for the RPC connection attempt to give up, and return control to the NFS layer. If the file is mirrored, we usually want to fail the attempt to the downed data server much earlier, and retry using one of the other mirrors.
This patchset sets the connect timeout to be closer to the I/O timeout value for the case of pNFS to NFSv3 data servers.

v2:
- Don't override connect timeouts in rpc_clnt_add_xprt
- Don't override specified connect timeouts at setup

Trond Myklebust (5):
SUNRPC: Set the TCP_SYNCNT to match the socket timeout
SUNRPC: Refactor and simplify connect timeout
SUNRPC: Allow specification of TCP client connect timeout at setup
SUNRPC: Don't override connect timeouts in rpc_clnt_add_xprt() NFS/pNFS: Set the connect timeout for the pNFS flexfiles driver

 fs/nfs/client.c             |  2 ++
 fs/nfs/internal.h           |  2 ++
 fs/nfs/nfs3client.c         |  3 ++
 fs/nfs/pnfs_nfs.c           |  3 ++
 include/linux/sunrpc/clnt.h |  2 ++
 include/linux/sunrpc/xprt.h |  2 ++
 net/sunrpc/clnt.c           |  7 +++++
 net/sunrpc/xprtsock.c       | 55 +++++++++++++++++++++++++++----------
 8 files changed, 61 insertions(+), 15 deletions(-)
Signature · 1 line
2.41.0