]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use btrfs_fs_closing for background bg work
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:21 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commit2f12741f81af638dfb682dc2f24e6cbb67a37a2e
tree7d03a02d1e0a20e44f5c713b401406015cbe23d1
parentd1f68ba0695a0ceba1a2ec72ee9b949fe4b92c98
btrfs: use btrfs_fs_closing for background bg work

For both unused bg deletion and async balance work we'll happily run if
the fs is closing.  However I want to move these to their own worker
thread, and they can be long running jobs, so add a check to see if
we're closing and simply bail.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c