cifs: Ratelimit kernel log messages
authorJamie Bainbridge <jamie.bainbridge@gmail.com>
Sat, 7 Nov 2015 12:13:49 +0000 (22:13 +1000)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 3 Feb 2016 21:23:15 +0000 (16:23 -0500)
commitca7342a8a39704670c4079aacbd78e360beaf223
tree23a58e754ec4431e7aeacf35f6c6005d87c26471
parent5301c0647782e71150361a3854ccf3e004b79bb9
cifs: Ratelimit kernel log messages

[ Upstream commit ec7147a99e33a9e4abad6fc6e1b40d15df045d53 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h