]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't block if we can't acquire the reclaim lock
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 5 Jul 2021 16:32:38 +0000 (01:32 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Jul 2021 15:42:57 +0000 (17:42 +0200)
commite5b933c82e725d2a2d33bbb77f4f1cdd705af939
treee7f7cb63b520e9a19809fe605d994343419e2832
parent28ee5c7e184801a040f1b5db45b8522423c4c233
btrfs: don't block if we can't acquire the reclaim lock

If we can't acquire the reclaim_bgs_lock on block group reclaim, we
block until it is free. This can potentially stall for a long time.

While reclaim of block groups is necessary for a good user experience on
a zoned file system, there still is no need to block as it is best
effort only, just like when we're deleting unused block groups.

CC: stable@vger.kernel.org # 5.13
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c