[PATCH] Btrfs: fix deadlock in uuid scan kthread

2013-08-27 Thread Filipe David Borba Manana
If there's an ongoing transaction when the uuid scan kthread attempts to create one, the kthread will block, waiting for that transaction to finish while it's keeping locks on the tree root, and in turn the existing transaction is waiting for those locks to be free. The stack trace reported by

Re: [PATCH] Btrfs: fix deadlock in uuid scan kthread

2013-08-27 Thread Josef Bacik
On Tue, Aug 27, 2013 at 04:51:55PM +0100, Filipe David Borba Manana wrote: If there's an ongoing transaction when the uuid scan kthread attempts to create one, the kthread will block, waiting for that transaction to finish while it's keeping locks on the tree root, and in turn the existing