diff options
author | Lachlan McIlroy <lachlan@sgi.com> | 2008-06-22 23:23:57 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:58:54 -0400 |
commit | 7f871d5d1b9b126c1a0cece737a37c6980c988e3 (patch) | |
tree | c5eda9a03a16da85786bf15c7f31f5b23bc5492b /fs/xfs/xfs_inode.c | |
parent | ad9b463aa206b8c8f0bab378cf7c090c1a9a8e34 (diff) |
[XFS] make inode reclaim wait for log I/O to complete
During a forced shutdown a xfs inode can be destroyed before log I/O
involving that inode is complete. We need to wait for the inode to be
unpinned before tearing it down. Version 2 cleans up the code a bit by
relying on xfs_iflush() to do the unpinning and forced shutdown check.
SGI-PV: 981240
SGI-Modid: xfs-linux-melb:xfs-kern:31326a
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 199a36ac8e2d..fcb1dcc6f036 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -3082,8 +3082,6 @@ xfs_iflush( | |||
3082 | * flush lock and do nothing. | 3082 | * flush lock and do nothing. |
3083 | */ | 3083 | */ |
3084 | if (xfs_inode_clean(ip)) { | 3084 | if (xfs_inode_clean(ip)) { |
3085 | ASSERT((iip != NULL) ? | ||
3086 | !(iip->ili_item.li_flags & XFS_LI_IN_AIL) : 1); | ||
3087 | xfs_ifunlock(ip); | 3085 | xfs_ifunlock(ip); |
3088 | return 0; | 3086 | return 0; |
3089 | } | 3087 | } |