cifs: Ratelimit kernel log messages
authorJamie Bainbridge <jamie.bainbridge@gmail.com>
Sat, 7 Nov 2015 12:13:49 +0000 (22:13 +1000)
committerSteve French <sfrench@localhost.localdomain>
Thu, 14 Jan 2016 19:39:02 +0000 (13:39 -0600)
commitec7147a99e33a9e4abad6fc6e1b40d15df045d53
tree0bb16e11803e1136004e2077161ad65861f537bb
parent7fdec82af6a9e190e53d07a1463d2a9ac49a8750
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>
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h