[Devel] [PATCH 2/2] nfsd: make NFSv4 grace time per net
J. Bruce Fields
bfields at fieldses.org
Wed Nov 28 07:10:06 PST 2012
On Tue, Nov 27, 2012 at 02:11:49PM +0300, Stanislav Kinsbursky wrote:
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index 4930981..7e41bd1 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -928,7 +928,8 @@ static ssize_t write_leasetime(struct file *file, char *buf, size_t size)
> */
> static ssize_t write_gracetime(struct file *file, char *buf, size_t size)
> {
> - return nfsd4_write_time(file, buf, size, &nfsd4_grace);
> + struct nfsd_net *nn = net_generic(&init_net, nfsd_net_id);
> + return nfsd4_write_time(file, buf, size, &nn->nfsd4_grace);
> }
Same comment as for lease time.--b.
More information about the Devel
mailing list