]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Ratelimit kernel log messages
authorJamie Bainbridge <jamie.bainbridge@gmail.com>
Sat, 7 Nov 2015 12:13:49 +0000 (22:13 +1000)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:55 +0000 (15:43 -0700)
commit091c04c846a45405691000a6fcb81521c97ba0c7
treec8e1f5a7e3eeb3a5ccc71fe2da2de4f4f050cff8
parent6d40a453714b424924c70927e6b93b87ac7ce627
cifs: Ratelimit kernel log messages

Orabug: 23330630

[ 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>
(cherry picked from commit ca7342a8a39704670c4079aacbd78e360beaf223)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.h