Btrfs: Add delayed iput
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:36:34 +0000 (09:36 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:35 +0000 (12:33 -0500)
commit24bbcf0442ee04660a5a030efdbb6d03f1c275cb
treeaa57d77d29cc5150b272cc3f6465f10262fcbaac
parentf34f57a3ab4e73304d78c125682f1a53cd3975f2
Btrfs: Add delayed iput

iput() can trigger new transactions if we are dropping the
final reference, so calling it in btrfs_commit_transaction
may end up deadlock. This patch adds delayed iput to avoid
the issue.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/relocation.c
fs/btrfs/super.c
fs/btrfs/transaction.c