diff options
author | Eryu Guan <eguan@linux.alibaba.com> | 2021-03-23 10:57:13 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-05 09:04:21 -0400 |
commit | c9301cb35b59ad7d733a7332f3aefd4da1382468 (patch) | |
tree | 121b59ea9a5d1140f6f9c239d9c0fa0f6a2dad04 /net/sunrpc | |
parent | 6b996476f364009e9be43e98f5bca11e5ec95b2d (diff) | |
download | linux-stable-c9301cb35b59ad7d733a7332f3aefd4da1382468.tar.gz linux-stable-c9301cb35b59ad7d733a7332f3aefd4da1382468.tar.bz2 linux-stable-c9301cb35b59ad7d733a7332f3aefd4da1382468.zip |
nfs: hornor timeo and retrans option when mounting NFSv3
Mounting NFSv3 uses default timeout parameters specified by underlying
sunrpc transport, and mount options like 'timeo' and 'retrans', unlike
NFSv4, are not honored.
But sometimes we want to set non-default timeout value when mounting
NFSv3, so pass 'timeo' and 'retrans' to nfs_mount() and fill the
'timeout' field of struct rpc_create_args before creating RPC
connection. This is also consistent with NFSv4 behavior.
Note that this only sets the timeout value of rpc connection to mountd,
but the timeout of rpcbind connection should be set as well. A later
patch will fix the rpcbind part.
Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions