lkml.org 
[lkml]   [2012]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] nfsd: make NFSv4 lease time per net
On Tue, Nov 27, 2012 at 02:11:44PM +0300, Stanislav Kinsbursky wrote:
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index dab350d..4930981 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -912,7 +912,8 @@ static ssize_t nfsd4_write_time(struct file *file, char *buf, size_t size, time_
> */
> static ssize_t write_leasetime(struct file *file, char *buf, size_t size)
> {
> - return nfsd4_write_time(file, buf, size, &nfsd4_lease);
> + struct nfsd_net *nn = net_generic(&init_net, nfsd_net_id);
> + return nfsd4_write_time(file, buf, size, &nn->nfsd4_lease);

This is called in the context of whatever process writes to
nfsv4leasetime, so should be using its network namespace, right?

--b.


\
 
 \ /
  Last update: 2012-11-28 16:41    [W:0.071 / U:2.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site