aha/fs/xfs/quota
David Chinner 2f8a3ce1c2 [XFS] don't block in xfs_qm_dqflush() during async writeback.
Normally dquots are written back via delayed write mechanisms. They are
flushed to their backing buffer by xfssyncd, which is then pushed out by
either AIL or xfsbufd flushing. The flush from the xfssyncd is supposed to
be non-blocking, but xfs_qm_dqflush() always waits for pinned duots, which
means that it will block for the length of time it takes to do a
synchronous log force. This causes unnecessary extra log I/O to be issued
whenever we try to flush a busy dquot.

Avoid the log forces and blocking xfssyncd by making xfs_qm_dqflush() pay
attention to what type of sync it is doing when it sees a pinned dquot and
not waiting when doing non-blocking flushes.

SGI-PV: 988147

SGI-Modid: xfs-linux-melb:xfs-kern:32287a

Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Peter Leckie <pleckie@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
2008-10-30 17:07:20 +11:00
..
xfs_dquot.c [XFS] don't block in xfs_qm_dqflush() during async writeback. 2008-10-30 17:07:20 +11:00
xfs_dquot.h [XFS] Clean up dquot pincount code. 2008-10-30 17:05:04 +11:00
xfs_dquot_item.c [XFS] Fix build brakage from patch "Clean up dquot pincount code" 2008-10-30 17:05:18 +11:00
xfs_dquot_item.h [XFS] Update license/copyright notices to match the prefered SGI 2005-11-02 14:59:41 +11:00
xfs_qm.c [XFS] Clean up dquot pincount code. 2008-10-30 17:05:04 +11:00
xfs_qm.h [XFS] Clean up dquot pincount code. 2008-10-30 17:05:04 +11:00
xfs_qm_bhv.c [XFS] cleanup xfs_mountfs 2008-08-13 16:49:32 +10:00
xfs_qm_stats.c [XFS] Remove unused header files for MAC and CAP checking functionality. 2007-02-10 18:37:28 +11:00
xfs_qm_stats.h [XFS] Replace __inline with inline 2008-04-18 11:51:15 +10:00
xfs_qm_syscalls.c [XFS] kill bhv_vnode_t 2008-08-13 16:22:40 +10:00
xfs_quota_priv.h [XFS] s/XFS_PURGE_INODE/IRELE/g s/VN_HOLD(XFS_ITOV())/IHOLD()/ 2008-07-28 16:59:29 +10:00
xfs_trans_dquot.c [XFS] shrink mrlock_t 2008-04-29 15:54:02 +10:00