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)
commit733232f8c852bcc2ad6fc1db7f4c43eb01c7c217
tree712122bb8f1bf479ca5ddee13201e013b190132a
parentc663e04097f4e286fc146f79eb5ef6a47c01d337
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: 29fc2bc7539386 ("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