diff options
author | Jamie Bainbridge <jamie.bainbridge@gmail.com> | 2015-11-07 13:13:49 +0100 |
---|---|---|
committer | Steve French <sfrench@localhost.localdomain> | 2016-01-14 20:39:02 +0100 |
commit | ec7147a99e33a9e4abad6fc6e1b40d15df045d53 (patch) | |
tree | 0bb16e11803e1136004e2077161ad65861f537bb /fs/cifs/cifs_debug.c | |
parent | Merge tag 'xfs-for-linus-4.5' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
download | linux-ec7147a99e33a9e4abad6fc6e1b40d15df045d53.tar.xz linux-ec7147a99e33a9e4abad6fc6e1b40d15df045d53.zip |
cifs: Ratelimit kernel log messages
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>
CC: Stable <stable@vger.kernel.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); } |