summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2020-12-18 14:24:19 -0500
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:56 +0100
commitddfd08cb0484e491cae47a76ead051a168a0e644 (patch)
treeeccc8c52607a3d2e83a4fca2a44c8b3d34751a9d /fs/btrfs/transaction.c
parent867ed321f90d06aaba84e2c91de51cd3038825ef (diff)
downloadlinux-ddfd08cb0484e491cae47a76ead051a168a0e644.tar.bz2
btrfs: do not block on deleted bgs mutex in the cleaner
While running some stress tests I started getting hung task messages. This is because the delete unused block groups code has to take the delete_unused_bgs_mutex to do it's work, which is taken by balance to make sure we don't delete block groups while we're balancing. The problem is that balance can take a while, and so we were getting hung task warnings. We don't need to block and run these things, and the cleaner is needed to do other work, so trylock on this mutex and just bail if we can't acquire it right away. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/transaction.c')
0 files changed, 0 insertions, 0 deletions