linux-stable-rt/fs/xfs/linux-2.6
Dave Chinner 57817c6822 xfs: reclaim all inodes by background tree walks
We cannot do direct inode reclaim without taking the flush lock to
ensure that we do not reclaim an inode under IO. We check the inode
is clean before doing direct reclaim, but this is not good enough
because the inode flush code marks the inode clean once it has
copied the in-core dirty state to the backing buffer.

It is the flush lock that determines whether the inode is still
under IO, even though it is marked clean, and the inode is still
required at IO completion so we can't reclaim it even though it is
clean in core. Hence the requirement that we need to take the flush
lock even on clean inodes because this guarantees that the inode
writeback IO has completed and it is safe to reclaim the inode.

With delayed write inode flushing, we coul dend up waiting a long
time on the flush lock even for a clean inode. The background
reclaim already handles this efficiently, so avoid all the problems
by killing the direct reclaim path altogether.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
2010-01-15 13:44:44 -06:00
..
kmem.c
kmem.h
mrlock.h
sv.h
time.h
xfs_acl.c xfs: fix timestamp handling in xfs_setattr 2010-01-10 12:21:58 -06:00
xfs_aops.c
xfs_aops.h
xfs_buf.c
xfs_buf.h
xfs_cred.h
xfs_dmapi_priv.h
xfs_export.c
xfs_export.h
xfs_file.c
xfs_fs_subr.c
xfs_fs_subr.h
xfs_globals.c
xfs_globals.h
xfs_ioctl.c
xfs_ioctl.h
xfs_ioctl32.c
xfs_ioctl32.h
xfs_iops.c
xfs_iops.h
xfs_linux.h
xfs_lrw.c
xfs_lrw.h
xfs_quotaops.c
xfs_stats.c
xfs_stats.h
xfs_super.c xfs: reclaim all inodes by background tree walks 2010-01-15 13:44:44 -06:00
xfs_super.h
xfs_sync.c xfs: Avoid inodes in reclaim when flushing from inode cache 2010-01-15 13:44:21 -06:00
xfs_sync.h xfs: reclaim inodes under a write lock 2010-01-15 13:43:55 -06:00
xfs_sysctl.c
xfs_sysctl.h
xfs_trace.c
xfs_trace.h xfs: Ensure we force all busy extents in range to disk 2010-01-10 12:22:02 -06:00
xfs_version.h
xfs_vnode.h
xfs_xattr.c