aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/filelayout
diff options
context:
space:
mode:
authorEryu Guan <eguan@linux.alibaba.com>2021-03-23 10:57:13 +0800
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-05 09:04:21 -0400
commitc9301cb35b59ad7d733a7332f3aefd4da1382468 (patch)
tree121b59ea9a5d1140f6f9c239d9c0fa0f6a2dad04 /fs/nfs/filelayout
parentsunrpc: honor rpc_task's timeout value in rpcb_create() (diff)
downloadlinux-dev-c9301cb35b59ad7d733a7332f3aefd4da1382468.tar.xz
linux-dev-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 'fs/nfs/filelayout')
0 files changed, 0 insertions, 0 deletions