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)
commit9cc0b837e14ae913581ec1ea6e979a738f71b0fd
treee7f7cb63b520e9a19809fe605d994343419e2832
parentabb99cfdaf0759f8a619e5fecf52ccccdf310c8c
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