diff options
author | Jamie Bainbridge <jamie.bainbridge@gmail.com> | 2015-11-07 22:13:49 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 12:01:17 -0800 |
commit | 88413fceab844abec9e8007aaeec35c4bfc3f3fc (patch) | |
tree | b2c8535d8006f4f65582ad8a67504a15339f9c26 /fs/cifs/cifs_debug.c | |
parent | 224f259d9393ca342dd565321db48ec4a79a695f (diff) | |
download | linux-stable-88413fceab844abec9e8007aaeec35c4bfc3f3fc.tar.gz linux-stable-88413fceab844abec9e8007aaeec35c4bfc3f3fc.tar.bz2 linux-stable-88413fceab844abec9e8007aaeec35c4bfc3f3fc.zip |
cifs: Ratelimit kernel log messages
commit ec7147a99e33a9e4abad6fc6e1b40d15df045d53 upstream.
Under some conditions, CIFS can repeatedly call the cifs_dbg() logging
wrapper. If done rapidly enough, the console framebuffer can softlockup
or "rcu_sched self-detected stall". Apply the built-in log ratelimiters
to prevent such hangs.
Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 7febcf2475c5..50b268483302 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -50,7 +50,7 @@ void cifs_vfs_err(const char *fmt, ...) vaf.fmt = fmt; vaf.va = &args; - pr_err("CIFS VFS: %pV", &vaf); + pr_err_ratelimited("CIFS VFS: %pV", &vaf); va_end(args); } |