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>
This commit is contained in:
committed by
Trond Myklebust
parent
5318a29c19
commit
96dcadc2fd
@@ -1261,7 +1261,8 @@ restart:
|
|||||||
spin_lock(&state->state_lock);
|
spin_lock(&state->state_lock);
|
||||||
list_for_each_entry(lock, &state->lock_states, ls_locks) {
|
list_for_each_entry(lock, &state->lock_states, ls_locks) {
|
||||||
if (!(lock->ls_flags & NFS_LOCK_INITIALIZED))
|
if (!(lock->ls_flags & NFS_LOCK_INITIALIZED))
|
||||||
printk("NFS: %s: Lock reclaim "
|
pr_warn_ratelimited("NFS: "
|
||||||
|
"%s: Lock reclaim "
|
||||||
"failed!\n", __func__);
|
"failed!\n", __func__);
|
||||||
}
|
}
|
||||||
spin_unlock(&state->state_lock);
|
spin_unlock(&state->state_lock);
|
||||||
|
Reference in New Issue
Block a user