From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jeff Layton <jlayton@primarydata.com>
Cc: imc@cs.ox.ac.uk, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] lockd: ratelimit "lockd: cannot monitor" messages
Date: Thu, 6 Nov 2014 14:48:32 -0500 [thread overview]
Message-ID: <20141106194832.GB22638@fieldses.org> (raw)
In-Reply-To: <1414758509-30397-1-git-send-email-jlayton@primarydata.com>
On Fri, Oct 31, 2014 at 08:28:29AM -0400, Jeff Layton wrote:
> When lockd can't talk to a remote statd, it'll spew a warning message
> to the ring buffer. If the application is really hammering on locks
> however, it's possible for that message to spam the logs. Ratelimit it
> to minimize the potential for harm.
Thanks, applying for 3.19.--b.
>
> Reported-by: Ian Collier <imc@cs.ox.ac.uk>
> Signed-off-by: Jeff Layton <jlayton@primarydata.com>
> ---
> fs/lockd/mon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
> index 9106f42c472c..1cc6ec51e6b1 100644
> --- a/fs/lockd/mon.c
> +++ b/fs/lockd/mon.c
> @@ -214,7 +214,7 @@ int nsm_monitor(const struct nlm_host *host)
> if (unlikely(res.status != 0))
> status = -EIO;
> if (unlikely(status < 0)) {
> - printk(KERN_NOTICE "lockd: cannot monitor %s\n", nsm->sm_name);
> + pr_notice_ratelimited("lockd: cannot monitor %s\n", nsm->sm_name);
> return status;
> }
>
> --
> 1.9.3
>
prev parent reply other threads:[~2014-11-06 19:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-31 12:28 [PATCH] lockd: ratelimit "lockd: cannot monitor" messages Jeff Layton
2014-10-31 12:36 ` Trond Myklebust
2014-10-31 12:44 ` Jeff Layton
2014-11-06 19:48 ` J. Bruce Fields [this message]
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=20141106194832.GB22638@fieldses.org \
--to=bfields@fieldses.org \
--cc=imc@cs.ox.ac.uk \
--cc=jlayton@primarydata.com \
--cc=linux-nfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox