]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Btrfs: Add delayed iput
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:36:34 +0000 (09:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:57 +0000 (13:19 -0700)
commita5b2df73b868e2f8ad68674419d45f5e577bc0d4
tree3d3299a52e1ac70ab3bb83057029b13f9afa53aa
parent6e423a0b564b2a5509c6bc0da6abb7865db4b2a7
Btrfs: Add delayed iput

commit 24bbcf0442ee04660a5a030efdbb6d03f1c275cb upstream.

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>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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