]> 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)
commit79359018591734b0298ccf21a53912375bedb9af
tree3fa80aaf08c8a7902ea0df03cac1b0ae50481f8d
parent0609df96c1f9e0cf8c74249851bceb782342e14c
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