linux/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_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_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_qm_bhv.c [XFS] cleanup xfs_mountfs 2008-08-13 16:49:32 +10:00
xfs_qm_stats.c
xfs_qm_stats.h
xfs_qm_syscalls.c [XFS] kill bhv_vnode_t 2008-08-13 16:22:40 +10: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_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