Commit bf2bf9b8 authored by Trond Myklebust's avatar Trond Myklebust

pNFS/flexfiles: Turn off soft RPC calls

The pNFS/flexfiles I/O requests are sent with the SOFTCONN flag set, so
they automatically time out if the connection breaks. It should
therefore not be necessary to have the soft flag set in addition.

Fixes: 5f01d953 ("nfs41: create NFSv3 DS connection if specified")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent bd736ed3
...@@ -627,11 +627,16 @@ static int _nfs4_pnfs_v3_ds_connect(struct nfs_server *mds_srv, ...@@ -627,11 +627,16 @@ static int _nfs4_pnfs_v3_ds_connect(struct nfs_server *mds_srv,
/* Add this address as an alias */ /* Add this address as an alias */
rpc_clnt_add_xprt(clp->cl_rpcclient, &xprt_args, rpc_clnt_add_xprt(clp->cl_rpcclient, &xprt_args,
rpc_clnt_test_and_add_xprt, NULL); rpc_clnt_test_and_add_xprt, NULL);
} else continue;
clp = get_v3_ds_connect(mds_srv, }
(struct sockaddr *)&da->da_addr, clp = get_v3_ds_connect(mds_srv,
da->da_addrlen, IPPROTO_TCP, (struct sockaddr *)&da->da_addr,
timeo, retrans); da->da_addrlen, IPPROTO_TCP,
timeo, retrans);
if (IS_ERR(clp))
continue;
clp->cl_rpcclient->cl_softerr = 0;
clp->cl_rpcclient->cl_softrtry = 0;
} }
if (IS_ERR(clp)) { if (IS_ERR(clp)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment