nfs41: recover lease in _nfs4_lookup_root
This creates the nfsv4.1 session on mount. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
b4b82607ff
commit
008f55d0e0
3 changed files with 25 additions and 1 deletions
|
@ -2024,8 +2024,15 @@ static int _nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle,
|
|||
.rpc_argp = &args,
|
||||
.rpc_resp = &res,
|
||||
};
|
||||
int status;
|
||||
|
||||
nfs_fattr_init(info->fattr);
|
||||
return nfs4_call_sync(server, &msg, &args, &res, 0);
|
||||
status = nfs4_recover_expired_lease(server);
|
||||
if (!status)
|
||||
status = nfs4_check_client_ready(server->nfs_client);
|
||||
if (!status)
|
||||
status = nfs4_call_sync(server, &msg, &args, &res, 0);
|
||||
return status;
|
||||
}
|
||||
|
||||
static int nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue