aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 8f1c65210afb..b4e2199c32b3 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1477,8 +1477,8 @@ error:
1477 * the MDS. 1477 * the MDS.
1478 */ 1478 */
1479struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp, 1479struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
1480 const struct sockaddr *ds_addr, 1480 const struct sockaddr *ds_addr, int ds_addrlen,
1481 int ds_addrlen, int ds_proto) 1481 int ds_proto, unsigned int ds_timeo, unsigned int ds_retrans)
1482{ 1482{
1483 struct nfs_client_initdata cl_init = { 1483 struct nfs_client_initdata cl_init = {
1484 .addr = ds_addr, 1484 .addr = ds_addr,
@@ -1488,12 +1488,7 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
1488 .minorversion = mds_clp->cl_minorversion, 1488 .minorversion = mds_clp->cl_minorversion,
1489 .net = mds_clp->net, 1489 .net = mds_clp->net,
1490 }; 1490 };
1491 struct rpc_timeout ds_timeout = { 1491 struct rpc_timeout ds_timeout;
1492 .to_initval = 15 * HZ,
1493 .to_maxval = 15 * HZ,
1494 .to_retries = 1,
1495 .to_exponential = 1,
1496 };
1497 struct nfs_client *clp; 1492 struct nfs_client *clp;
1498 1493
1499 /* 1494 /*
@@ -1501,6 +1496,7 @@ struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
1501 * cl_ipaddr so as to use the same EXCHANGE_ID co_ownerid as the MDS 1496 * cl_ipaddr so as to use the same EXCHANGE_ID co_ownerid as the MDS
1502 * (section 13.1 RFC 5661). 1497 * (section 13.1 RFC 5661).
1503 */ 1498 */
1499 nfs_init_timeout_values(&ds_timeout, ds_proto, ds_timeo, ds_retrans);
1504 clp = nfs_get_client(&cl_init, &ds_timeout, mds_clp->cl_ipaddr, 1500 clp = nfs_get_client(&cl_init, &ds_timeout, mds_clp->cl_ipaddr,
1505 mds_clp->cl_rpcclient->cl_auth->au_flavor, 0); 1501 mds_clp->cl_rpcclient->cl_auth->au_flavor, 0);
1506 1502