summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-12 23:01:48 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-12 23:15:22 +0100
commit9a3ba432330e504ac61ff0043dbdaba7cea0e35a (patch)
tree1efadb9ff2c7a662bf8cb6da9a7bd70595810b02 /fs/nfs/nfs4proc.c
parentSUNRPC: Don't use variable length automatic arrays in kernel code (diff)
downloadlinux-9a3ba432330e504ac61ff0043dbdaba7cea0e35a.tar.xz
linux-9a3ba432330e504ac61ff0043dbdaba7cea0e35a.zip
NFSv4: Rate limit the state manager warning messages
Prevent the state manager from filling up system logs when recovery fails on the server. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 36a7cda03445..5e0961acfef4 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1876,7 +1876,7 @@ static struct nfs4_state *nfs4_do_open(struct inode *dir, struct dentry *dentry,
* the user though...
*/
if (status == -NFS4ERR_BAD_SEQID) {
- printk(KERN_WARNING "NFS: v4 server %s "
+ pr_warn_ratelimited("NFS: v4 server %s "
" returned a bad sequence-id error!\n",
NFS_SERVER(dir)->nfs_client->cl_hostname);
exception.retry = 1;