]> git.hungrycats.org Git - linux/commit
btrfs: Add ratelimit to btrfs printing
authorNikolay Borisov <kernel@kyup.com>
Wed, 13 Jul 2016 13:19:15 +0000 (16:19 +0300)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Thu, 28 Jul 2016 02:20:38 +0000 (22:20 -0400)
commit719d8f38cc6e7449fd1551bca59c1063a71008fc
tree8f01ac8a3d48d56ea83bf2a586feca1e3652b9c9
parentd6f655a1bbc8910f2dfdacfdf4b7d5ec0c6804b2
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>
(cherry picked from commit 35f4e5e6f198a11c11606a742b309aa80271c66d)
fs/btrfs/super.c