[XFS] On-demand reaping of the MRU cache
Instead of running the mru cache reaper all the time based on a timeout, we should only run it when the cache has active objects. This allows CPUs to sleep when there is no activity rather than be woken repeatedly just to check if there is anything to do. SGI-PV: 968554 SGI-Modid: xfs-linux-melb:xfs-kern:29305a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
committed by
Tim Shimmin
parent
c2f828977b
commit
65de556756
@@ -467,8 +467,7 @@ void
|
||||
xfs_filestream_flush(
|
||||
xfs_mount_t *mp)
|
||||
{
|
||||
/* point in time flush, so keep the reaper running */
|
||||
xfs_mru_cache_flush(mp->m_filestream, 1);
|
||||
xfs_mru_cache_flush(mp->m_filestream);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user