Re: [PATCH] btrfs: Unlock extents in btrfs_zero_range in case of errors

2021-02-23 Thread David Sterba
On Tue, Feb 23, 2021 at 03:20:42PM +0200, Nikolay Borisov wrote: > If btrfs_qgroup_reserve_data returns an error (i.e quota limit reached) > the handling logic directly goes to the 'out' label without first > unlocking the extent range between lockstart, lockend. This results in > deadlocks as proc

Re: [PATCH] btrfs: Unlock extents in btrfs_zero_range in case of errors

2021-02-23 Thread Qu Wenruo
On 2021/2/23 下午9:20, Nikolay Borisov wrote: If btrfs_qgroup_reserve_data returns an error (i.e quota limit reached) the handling logic directly goes to the 'out' label without first unlocking the extent range between lockstart, lockend. This results in deadlocks as processes try to lock the sa