• Eryu Guan's avatar
    nfs: hornor timeo and retrans option when mounting NFSv3 · c9301cb3
    Eryu Guan authored
    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: default avatarEryu Guan <eguan@linux.alibaba.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    c9301cb3
internal.h 25.2 KB