Skip to content

Commit b326df4

Browse files
author
Trond Myklebust
committed
NFS: enable nconnect for RDMA
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 <trond.myklebust@hammerspace.com>
1 parent 0460253 commit b326df4

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
@@ -924,6 +924,7 @@ static int nfs4_set_client(struct nfs_server *server,
924924
else
925925
cl_init.max_connect = max_connect;
926926
switch (proto) {
927+
case XPRT_TRANSPORT_RDMA:
927928
case XPRT_TRANSPORT_TCP:
928929
case XPRT_TRANSPORT_TCP_TLS:
929930
cl_init.nconnect = nconnect;
@@ -1000,6 +1001,7 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_server *mds_srv,
10001001
cl_init.hostname = buf;
10011002

10021003
switch (ds_proto) {
1004+
case XPRT_TRANSPORT_RDMA:
10031005
case XPRT_TRANSPORT_TCP:
10041006
case XPRT_TRANSPORT_TCP_TLS:
10051007
if (mds_clp->cl_nconnect > 1) {

0 commit comments

Comments
 (0)