Josef Bacik e4a2bcaca9 Btrfs: if we aren't committing just end the transaction if we error out
I hit a deadlock where transaction commit was waiting on num_writers to be
0.  This happened because somebody came into btrfs_commit_transaction and
noticed we had aborted and it went to cleanup_transaction.  This shouldn't
happen because cleanup_transaction is really to fixup a bad commit, it
doesn't do the normal trans handle cleanup things.  So if we have an error
just do the normal btrfs_end_transaction dance and return.  Once we are in
the actual commit path we can use cleanup_transaction and be good to go.
Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
2013-02-20 12:59:35 -05:00
..
2012-12-17 14:48:21 -05:00
2012-05-29 23:28:33 -04:00
2013-02-20 12:59:09 -05:00
2012-10-09 09:14:45 -04:00
2012-10-09 09:14:45 -04:00
2013-02-20 09:37:17 -05:00
2013-02-20 09:36:43 -05:00
2011-06-17 14:54:18 -04:00
2012-10-01 15:18:53 -04:00
2012-10-01 15:18:53 -04:00
2012-10-09 09:19:57 -04:00