diff options
author | William Dauchy <wdauchy@gmail.com> | 2012-03-14 07:32:04 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-14 09:25:26 -0400 |
commit | 96dcadc2fdd111dca90d559f189a30c65394451a (patch) | |
tree | ea1e3a5855afde8cdacfe0f41eed00023bab6129 /fs/nfs | |
parent | 5318a29c1943e9719e71495db6efb6fc084a45a9 (diff) |
NFSv4: Rate limit the state manager for lock reclaim warning messages
Adding rate limit on `Lock reclaim failed` messages since it could fill
up system logs
Signed-off-by: William Dauchy <wdauchy@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index cb708b20a775..119006b0815a 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -1261,7 +1261,8 @@ restart: | |||
1261 | spin_lock(&state->state_lock); | 1261 | spin_lock(&state->state_lock); |
1262 | list_for_each_entry(lock, &state->lock_states, ls_locks) { | 1262 | list_for_each_entry(lock, &state->lock_states, ls_locks) { |
1263 | if (!(lock->ls_flags & NFS_LOCK_INITIALIZED)) | 1263 | if (!(lock->ls_flags & NFS_LOCK_INITIALIZED)) |
1264 | printk("NFS: %s: Lock reclaim " | 1264 | pr_warn_ratelimited("NFS: " |
1265 | "%s: Lock reclaim " | ||
1265 | "failed!\n", __func__); | 1266 | "failed!\n", __func__); |
1266 | } | 1267 | } |
1267 | spin_unlock(&state->state_lock); | 1268 | spin_unlock(&state->state_lock); |