]> git.baikalelectronics.ru Git - kernel.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)
commitd77e71326b66843c027f5facdf0cf9d666bb103f
tree52cef56ec70610b9e0dd1fac355d646e827c0102
parent9f5a5c367d29c1c82fb55f1788b316092f428f4a
[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