Skip to content

RFC Request for Comment: NFS4.1 Session Trunking

[email protected] linux-nfs 1 version Applied

Status from this message: Thanks! Applied to the series.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6SUNRPC fix rpc_clnt_add_xprt setup returnnet/sunrpc/clnt.c+1 -11 reply
2/6SUNRPC fix rpc_clnt_xprt_iter_init infinite loopnet/sunrpc/clnt.c+7 -41 reply
3/6SUNRPC: allow rpc_xprt_switch_add_xprt to add xprts on the same netfs/nfs/client.c fs/nfs/nfs4client.c include/linux/nfs_fs_sb.h +4 more+48 -61 reply
4/6NFS session trunking support: add trunk xprt to nfs4.1 mountfs/nfs/nfs4client.c net/sunrpc/xprtmultipath.c+17 -11 reply
5/6NFS add callback_ops to nfs4_proc_bind_conn_to_session_callbackfs/nfs/nfs4proc.c+10 -01 reply
6/6NFS schedule bind_conn_to_session for new NFSv4.1 transportfs/nfs/nfs4client.c+11 -23 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC Version 1 0/6] Request for Comment: NFS4.1 Session Trunking

From: Andy Adamson <[email protected]>

This early patch set implements NFSv4.1 session trunking utilizing Tronds multipath feature. This works against an upstream linux server with two NICs as the EXCHANGE_ID info is the same for both NICs.

Unmodified code will create a new nfs_client structure for the mount as nfs_match_client fails due to the different full server address. Tunking is detected by comparing the eir_server_owner.major/minor/scope and the eir_server_impl_id to an existing mount. When trunking is detected, the 2nd mount point uses the existing (not new) nfs_client for the new mount point.

When trunking is detected, this patch set adds an rpc_xprt for the new server address to the exisiting mount, calls BIND_CONN_TO_SESSION, and destroys the new clientid (no second mount).

We then get round robin use of the two NICs off one mount point all using a single session.

Is using mount a good way to setup NFSv4.1 session trunking?

The first two patches fix issues with the multipath code.

SUNRPC: allow rpc_xprt_switch_add_xprt to add xprts on the same net
This patch adds a flag to allow multipathing within the origial net. I don't understand why this was not allowed, so I expect a different solution for this issue.

Comments please.

Thanks

-->Andy

Andy Adamson (6):
SUNRPC fix rpc_clnt_add_xprt setup return
SUNRPC fix rpc_clnt_xprt_iter_init infinite loop
SUNRPC: allow rpc_xprt_switch_add_xprt to add xprts on the same net NFS session trunking support: add trunk xprt to nfs4.1 mount NFS add callback_ops to nfs4_proc_bind_conn_to_session_callback NFS schedule bind_conn_to_session for new NFSv4.1 transport

 fs/nfs/client.c                      |  2 ++
 fs/nfs/nfs4client.c                  | 29 +++++++++++++++++++++++++++--
 fs/nfs/nfs4proc.c                    | 10 ++++++++++
 include/linux/nfs_fs_sb.h            |  1 +
 include/linux/sunrpc/clnt.h          |  1 +
 include/linux/sunrpc/xprtmultipath.h |  6 +++++-
 net/sunrpc/clnt.c                    | 20 +++++++++++++-------
 net/sunrpc/xprtmultipath.c           | 35 +++++++++++++++++++++++++++++++++--
 8 files changed, 92 insertions(+), 12 deletions(-)
Signature · 1 line
1.8.3.1