Re: [PATCH] Btrfs: fix deadlock when writing out free space caches

2018-10-17 Thread David Sterba
On Fri, Oct 12, 2018 at 10:03:55AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > When writing out a block group free space cache we can end deadlocking > with ourseves on an extent buffer lock resulting in a warning like the > following: > > [245043.379979] WARNING: CPU: 4 PID:

Re: [PATCH] Btrfs: fix deadlock when writing out free space caches

2018-10-12 Thread Josef Bacik
On Fri, Oct 12, 2018 at 10:03:55AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > When writing out a block group free space cache we can end deadlocking > with ourseves on an extent buffer lock resulting in a warning like the > following: > > [245043.379979] WARNING: CPU: 4 PID:

[PATCH] Btrfs: fix deadlock when writing out free space caches

2018-10-12 Thread fdmanana
From: Filipe Manana When writing out a block group free space cache we can end deadlocking with ourseves on an extent buffer lock resulting in a warning like the following: [245043.379979] WARNING: CPU: 4 PID: 2608 at fs/btrfs/locking.c:251 btrfs_tree_lock+0x1be/0x1d0 [btrfs]