diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-01 09:22:50 -0400 |
---|---|---|
committer | Benny Halevy <bhalevy@panasas.com> | 2009-06-17 12:25:13 -0700 |
commit | 008f55d0e019943323c20a03493a2ba5672a4cc8 (patch) | |
tree | 9d23ac89a198b307fa39018a228bd365e72a40d2 /fs/nfs/nfs4proc.c | |
parent | b4b82607ffcf09b57301846d154f2c09c0b807c0 (diff) | |
download | op-kernel-dev-008f55d0e019943323c20a03493a2ba5672a4cc8.zip op-kernel-dev-008f55d0e019943323c20a03493a2ba5672a4cc8.tar.gz |
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>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 64d6116..31ce758 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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, |