]> git.baikalelectronics.ru Git - kernel.git/commit
dm: use printk ratelimiting functions
authorMike Snitzer <snitzer@redhat.com>
Wed, 17 Jul 2019 16:57:06 +0000 (12:57 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jul 2019 17:09:32 +0000 (13:09 -0400)
commitb14d0d4b0e4a0589063a12d338ca518b7637dea6
tree712122bb8f1bf479ca5ddee13201e013b190132a
parent0f57406b96c5539811c5331a2f000bdaf3883d36
dm: use printk ratelimiting functions

DM provided its own ratelimiting printk wrapper but given printk
advances this is no longer needed.

Also, switching DMDEBUG_LIMIT to using pr_debug_ratelimited() fixes the
reported issue where DMDEBUG_LIMIT() still caused a flood of "callbacks
suppressed" messages.

Reported-by: Milan Broz <gmazyland@gmail.com>
Depends-on: 93691771e72eea ("printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
include/linux/device-mapper.h