dm: fix printk() rate limiting code
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 9 Aug 2017 18:32:11 +0000 (11:32 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 28 Aug 2017 13:58:27 +0000 (09:58 -0400)
commit604407890ecf624c2fb41013c82b22aade59b455
tree5690560dcdd5ddf21a1387a9f082c8763e7076dd
parent68515cc72191f5c5d86f6ef7091dc8ba714d96e4
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: 71a16736a15e ("dm: use local printk ratelimit")
Cc: stable@vger.kernel.org
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c
include/linux/device-mapper.h