From: Mikael Davranche <mikael.davranche@free.fr>
To: Trond Myklebust <Trond.Myklebust@netapp.com>,
Trond Myklebust <trond.myklebust@fys.uio.no>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: [PATCH 3/3] NLM: Proposal for a timeout setting on blocking locks
Date: Tue, 11 Mar 2008 13:18:51 +0100 [thread overview]
Message-ID: <1205237931.47d678ab121ab@imp.free.fr> (raw)
In-Reply-To: <1205237665.47d677a143941@imp.free.fr>
# diff -u a/fs/lockd/svc.c b/fs/lockd/svc.c
--- a/fs/lockd/svc.c Tue Feb 26 01:20:20 2008
+++ b/fs/lockd/svc.c Mon Mar 10 16:21:58 2008
@@ -62,6 +62,7 @@
*/
static unsigned long nlm_grace_period;
static unsigned long nlm_timeout = LOCKD_DFLT_TIMEO;
+unsigned long nlm_clnt_poll_timeout = NLMCLNT_POLL_TIMEOUT;
static int nlm_udpport, nlm_tcpport;
int nsm_use_hostnames = 0;
@@ -72,6 +73,8 @@
static const unsigned long nlm_grace_period_max = 240;
static const unsigned long nlm_timeout_min = 3;
static const unsigned long nlm_timeout_max = 20;
+static const unsigned long nlm_clnt_poll_timeout_min = 1;
+static const unsigned long nlm_clnt_poll_timeout_max = 30;
static const int nlm_port_min = 0, nlm_port_max = 65535;
static struct ctl_table_header * nlm_sysctl_table;
@@ -391,6 +394,16 @@
},
{
.ctl_name = CTL_UNNUMBERED,
+ .procname = "nlm_clnt_poll_timeout",
+ .data = &nlm_clnt_poll_timeout,
+ .maxlen = sizeof(unsigned long),
+ .mode = 0644,
+ .proc_handler = &proc_doulongvec_minmax,
+ .extra1 = (unsigned long *) &nlm_clnt_poll_timeout_min,
+ .extra2 = (unsigned long *) &nlm_clnt_poll_timeout_max,
+ },
+ {
+ .ctl_name = CTL_UNNUMBERED,
.procname = "nlm_udpport",
.data = &nlm_udpport,
.maxlen = sizeof(int),
@@ -514,6 +527,8 @@
module_param_call(nlm_tcpport, param_set_port, param_get_int,
&nlm_tcpport, 0644);
module_param(nsm_use_hostnames, bool, 0644);
+module_param_call(nlm_clnt_poll_timeout, param_set_timeout, param_get_ulong,
+ &nlm_clnt_poll_timeout, 0644);
/*
* Initialising and terminating the module.
next prev parent reply other threads:[~2008-03-11 12:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 12:14 [PATCH 0/3] NLM: Proposal for a timeout setting on blocking locks Mikael Davranche
2008-03-11 12:15 ` [PATCH 1/3] " Mikael Davranche
2008-03-11 12:16 ` [PATCH 2/3] " Mikael Davranche
2008-03-11 12:18 ` Mikael Davranche [this message]
2008-03-11 23:25 ` [PATCH 0/3] " Trond Myklebust
2008-03-12 11:26 ` Mikael Davranche
2008-03-12 13:33 ` Trond Myklebust
2008-03-12 15:51 ` Mikael Davranche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205237931.47d678ab121ab@imp.free.fr \
--to=mikael.davranche@free.fr \
--cc=Trond.Myklebust@netapp.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.