]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Add ratelimit to btrfs printing
authorNikolay Borisov <kernel@kyup.com>
Wed, 13 Jul 2016 13:19:15 +0000 (16:19 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Jul 2016 11:52:25 +0000 (13:52 +0200)
commit113953f9fd73d26f422f548b3f177d71cb7ba4db
tree3fa80aaf08c8a7902ea0df03cac1b0ae50481f8d
parent550f3a4969e0721c13490074f6afdf898446af32
btrfs: Add ratelimit to btrfs printing

This patch adds ratelimiting to all messages which are not using the _rl
version of the various printing APIs in btrfs. This is designed to be
used as a safety net, since a flood messages might cause the softlockup
detector to trigger. To reduce interference between different classes of
messages use a separate ratelimit state for every class of message.

Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c