Skip to content

Commit df891f2

Browse files
committed
NFS: enable nconnect for RDMA
jira LE-2522 Rebuild_History Non-Buildable kernel-5.14.0-503.29.1.el9_5 commit-author Trond Myklebust <[email protected]> commit b326df4 It appears that in certain cases, RDMA capable transports can benefit from the ability to establish multiple connections to increase their throughput. This patch therefore enables the use of the "nconnect" mount option for those use cases. Signed-off-by: Trond Myklebust <[email protected]> (cherry picked from commit b326df4) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 368f1b9 commit df891f2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

fs/nfs/nfs3client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv,
111111
cl_init.hostname = buf;
112112

113113
switch (ds_proto) {
114+
case XPRT_TRANSPORT_RDMA:
114115
case XPRT_TRANSPORT_TCP:
115116
case XPRT_TRANSPORT_TCP_TLS:
116117
if (mds_clp->cl_nconnect > 1)

fs/nfs/nfs4client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ static int nfs4_set_client(struct nfs_server *server,
923923
else
924924
cl_init.max_connect = max_connect;
925925
switch (proto) {
926+
case XPRT_TRANSPORT_RDMA:
926927
case XPRT_TRANSPORT_TCP:
927928
case XPRT_TRANSPORT_TCP_TLS:
928929
cl_init.nconnect = nconnect;
@@ -999,6 +1000,7 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_server *mds_srv,
9991000
cl_init.hostname = buf;
10001001

10011002
switch (ds_proto) {
1003+
case XPRT_TRANSPORT_RDMA:
10021004
case XPRT_TRANSPORT_TCP:
10031005
case XPRT_TRANSPORT_TCP_TLS:
10041006
if (mds_clp->cl_nconnect > 1) {

0 commit comments

Comments
 (0)