diff options
| author | Kamal Dasu <[email protected]> | 2012-02-23 00:41:39 +0000 |
|---|---|---|
| committer | Ben Myers <[email protected]> | 2012-03-22 20:31:06 +0000 |
| commit | 5575acc7807595687288b3bbac15103f2a5462e1 (patch) | |
| tree | 1a47a34756e1c0023e2df8f3b1d9e10de568601a /lib/mpi/mpi-add.c | |
| parent | fs: xfs: fix section mismatch in linux-next (diff) | |
| download | kernel-5575acc7807595687288b3bbac15103f2a5462e1.tar.gz kernel-5575acc7807595687288b3bbac15103f2a5462e1.zip | |
xfs: fix deadlock in xfs_rtfree_extent
To fix the deadlock caused by repeatedly calling xfs_rtfree_extent
- removed xfs_ilock() and xfs_trans_ijoin() from xfs_rtfree_extent(),
instead added asserts that the inode is locked and has an inode_item
attached to it.
- in xfs_bunmapi() when dealing with an inode with the rt flag
call xfs_ilock() and xfs_trans_ijoin() so that the
reference count is bumped on the inode and attached it to the
transaction before calling into xfs_bmap_del_extent, similar to
what we do in xfs_bmap_rtalloc.
Signed-off-by: Kamal Dasu <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
