mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dm: fix printk() rate limiting code
Using the same rate limiting state for different kinds of messages
is wrong because this can cause a high frequency message to suppress
a report of a low frequency message. Hence use a unique rate limiting
state per message type.
Fixes: 71a16736a1 ("dm: use local printk ratelimit")
Cc: [email protected]
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
68515cc721
commit
604407890e
2 changed files with 12 additions and 39 deletions
|
|
@ -27,16 +27,6 @@
|
|||
|
||||
#define DM_MSG_PREFIX "core"
|
||||
|
||||
#ifdef CONFIG_PRINTK
|
||||
/*
|
||||
* ratelimit state to be used in DMXXX_LIMIT().
|
||||
*/
|
||||
DEFINE_RATELIMIT_STATE(dm_ratelimit_state,
|
||||
DEFAULT_RATELIMIT_INTERVAL,
|
||||
DEFAULT_RATELIMIT_BURST);
|
||||
EXPORT_SYMBOL(dm_ratelimit_state);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Cookies are numeric values sent with CHANGE and REMOVE
|
||||
* uevents while resuming, removing or renaming the device.
|
||||
|
|
|
|||
Loading…
Reference in a new issue