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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user