Re: [pnfs] [RFC 49/85] nfs41: recover lease in _nfs4_lookup_root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov. 10, 2008, 22:26 +0200, Benny Halevy <bhalevy@xxxxxxxxxxx> wrote:
> This creates the nfsv4.1 session on mount.
> 
> Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
> ---
>  fs/nfs/nfs4proc.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
> index 749027d..179ea6c 100644
> --- a/fs/nfs/nfs4proc.c
> +++ b/fs/nfs/nfs4proc.c
> @@ -1956,7 +1956,11 @@ static int _nfs4_lookup_root(struct nfs_server *server, struct nfs_fh *fhandle,
>  
>  	dprintk("--> %s\n", __func__);
>  	nfs_fattr_init(info->fattr);
> +	status = nfs4_recover_expired_lease(server);
> +	if (status != 0)
> +		goto out;

review 11-14: do that *only* for minorversion != 0

>  	status = nfs4_call_sync(server, &msg, &args, &res, 0);
> +out:
>  	dprintk("<-- %s status= %d\n", __func__, status);
>  	return status;
>  }
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux