Re: [PATCH v2] btrfs: Fix race condition between delayed refs and blockgroup removal

2018-04-16 Thread David Sterba
On Wed, Apr 11, 2018 at 10:59:09AM +0300, Nikolay Borisov wrote: > When the delayed refs for a head are all run, eventually > cleanup_ref_head is called which (in case of deletion) obtains a > reference for the relevant btrfs_space_info struct by querying the bg > for the range. This is problematic

Re: [PATCH v2] btrfs: Fix race condition between delayed refs and blockgroup removal

2018-04-11 Thread Nikolay Borisov
On 11.04.2018 10:59, Nikolay Borisov wrote: > When the delayed refs for a head are all run, eventually > cleanup_ref_head is called which (in case of deletion) obtains a > reference for the relevant btrfs_space_info struct by querying the bg > for the range. This is problematic because when the l