Files
linux/fs
Yan Zheng 180591bcfe Btrfs: Use btrfs_join_transaction to avoid deadlocks during snapshot creation
Snapshot creation happens at a specific time during transaction commit.  We
need to make sure the code called by snapshot creation doesn't wait
for the running transaction to commit.

This changes btrfs_delete_inode and finish_pending_snaps to use
btrfs_join_transaction instead of btrfs_start_transaction to avoid deadlocks.

It would be better if btrfs_delete_inode didn't use the join, but the
call path that triggers it is:

btrfs_commit_transaction->create_pending_snapshots->
create_pending_snapshot->btrfs_lookup_dentry->
fixup_tree_root_location->btrfs_read_fs_root->
btrfs_read_fs_root_no_name->btrfs_orphan_cleanup->iput

This will be fixed in a later patch by moving the orphan cleanup to the
cleaner thread.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
2009-01-06 09:58:06 -05:00
..
2008-10-27 08:40:17 -07:00
2008-10-13 09:47:43 +11:00
2008-11-13 13:22:34 -06:00
2008-11-06 15:41:22 -08:00
2008-11-01 09:49:46 -07:00
2008-10-23 05:12:58 -04:00
2008-10-17 02:38:36 +11:00
2008-12-01 19:55:25 -08:00
2008-12-16 18:26:16 -08:00
2008-11-18 15:08:56 +01:00
2008-12-10 08:01:54 -08:00
…
…
2008-11-27 17:38:28 +01:00
…
2008-10-16 11:21:38 -07:00
2008-10-09 08:57:05 +02:00
2008-12-04 04:22:57 -05:00
2008-11-27 17:38:28 +01:00
2008-10-23 05:12:59 -04:00
…
…
2008-12-09 19:36:38 -08:00
…
…
…
2008-10-30 11:38:45 -07:00
…
2008-11-19 18:49:59 -08:00
2008-11-12 17:17:17 -08:00
…
2008-11-01 09:49:46 -07:00
…
…
…
2008-10-30 11:38:45 -07:00
…
…
…
…
…