Re: [PATCH] Btrfs: fix deadlock between fiemap and transaction commits

2019-07-30 Thread David Sterba
On Mon, Jul 29, 2019 at 09:37:10AM +0100, fdman...@kernel.org wrote: > From: Filipe Manana > > The fiemap handler locks a file range that can have unflushed delalloc, > and after locking the range, it tries to attach to a running transaction. > If the running transaction started its commit, that

[PATCH] Btrfs: fix deadlock between fiemap and transaction commits

2019-07-29 Thread fdmanana
From: Filipe Manana The fiemap handler locks a file range that can have unflushed delalloc, and after locking the range, it tries to attach to a running transaction. If the running transaction started its commit, that is, it is in state TRANS_STATE_COMMIT_START, and either the filesystem was moun