Re: [PATCH] Btrfs: fix deadlock when using free space tree due to block group creation

2019-01-08 Thread Filipe Manana
On Tue, Jan 8, 2019 at 4:14 PM David Sterba wrote: > > On Tue, Jan 08, 2019 at 11:44:41AM +, fdman...@kernel.org wrote: > > From: Filipe Manana > > > > When modifying the free space tree we can end up COWing one of its extent > > buffers which in turn might result in allocating a new chunk, w

Re: [PATCH] Btrfs: fix deadlock when using free space tree due to block group creation

2019-01-08 Thread David Sterba
On Tue, Jan 08, 2019 at 11:44:41AM +, fdman...@kernel.org wrote: > From: Filipe Manana > > When modifying the free space tree we can end up COWing one of its extent > buffers which in turn might result in allocating a new chunk, which in > turn can result in flushing (finish creation) of pend

[PATCH] Btrfs: fix deadlock when using free space tree due to block group creation

2019-01-08 Thread fdmanana
From: Filipe Manana When modifying the free space tree we can end up COWing one of its extent buffers which in turn might result in allocating a new chunk, which in turn can result in flushing (finish creation) of pending block groups. If that happens we can deadlock because creating a pending bl