btrfs: fix deadlock in delayed_ref_async_start
authorChris Mason <clm@fb.com>
Wed, 27 Apr 2016 13:59:38 +0000 (09:59 -0400)
committerChris Mason <clm@fb.com>
Thu, 23 Jun 2016 00:54:18 +0000 (17:54 -0700)
commit0f873eca82a0bee45f38862e0ea2ac7b1c2a31bd
tree75b28a6c1e173e4a36e63d90b2e6122699158d01
parent31b9655f439a26856edca0f3f8daa368a61f16d5
btrfs: fix deadlock in delayed_ref_async_start

"Btrfs: track transid for delayed ref flushing" was deadlocking on
btrfs_attach_transaction because its not safe to call from the async
delayed ref start code.  This commit brings back btrfs_join_transaction
instead and checks for a blocked commit.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c