diff options
author | Eryu Guan <eguan@linux.alibaba.com> | 2021-03-23 03:57:13 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-05 15:04:21 +0200 |
commit | c9301cb35b59ad7d733a7332f3aefd4da1382468 (patch) | |
tree | 121b59ea9a5d1140f6f9c239d9c0fa0f6a2dad04 /net/sunrpc/xprtsock.c | |
parent | sunrpc: honor rpc_task's timeout value in rpcb_create() (diff) | |
download | linux-c9301cb35b59ad7d733a7332f3aefd4da1382468.tar.xz linux-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/xprtsock.c')
0 files changed, 0 insertions, 0 deletions