]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] make inode reclaim synchronise with xfs_iflush_done()
authorLachlan McIlroy <lachlan@sgi.com>
Thu, 6 Mar 2008 02:43:11 +0000 (13:43 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:34:54 +0000 (11:34 +1000)
commit461aa8a22595e3bd3e6f4dc2894d7c4315ea2bb9
tree52cef56ec70610b9e0dd1fac355d646e827c0102
parente12070a5dca8bfeee352e9655ae79772a96b32f8
[XFS] make inode reclaim synchronise with xfs_iflush_done()

On a forced shutdown, xfs_finish_reclaim() will skip flushing the inode.
If the inode flush lock is not already held and there is an outstanding
xfs_iflush_done() then we might free the inode prematurely. By acquiring
and releasing the flush lock we will synchronise with xfs_iflush_done().

SGI-PV: 909874
SGI-Modid: xfs-linux-melb:xfs-kern:30468a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chinner <dgc@sgi.com>
fs/xfs/xfs_vnodeops.c