]> 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)
commitb408433f0623cbfe29fec52db77b830f78a38503
tree7d03a02d1e0a20e44f5c713b401406015cbe23d1
parentf5cff82792c10bf1570078046ce99311d46bb7ad
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