projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5318a29
)
NFSv4: Rate limit the state manager for lock reclaim warning messages
author
William Dauchy
<wdauchy@gmail.com>
Wed, 14 Mar 2012 11:32:04 +0000
(12:32 +0100)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 14 Mar 2012 13:25:26 +0000
(09:25 -0400)
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>
fs/nfs/nfs4state.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4state.c
b/fs/nfs/nfs4state.c
index cb708b20a775c4bb4d5cb9a20b69729cf53c9f79..119006b0815ab4707ee788a26f9b44d5366c9d51 100644
(file)
--- a/
fs/nfs/nfs4state.c
+++ b/
fs/nfs/nfs4state.c
@@
-1261,7
+1261,8
@@
restart:
spin_lock(&state->state_lock);
list_for_each_entry(lock, &state->lock_states, ls_locks) {
if (!(lock->ls_flags & NFS_LOCK_INITIALIZED))
- printk("NFS: %s: Lock reclaim "
+ pr_warn_ratelimited("NFS: "
+ "%s: Lock reclaim "
"failed!\n", __func__);
}
spin_unlock(&state->state_lock);