Skip to contentSkip to conversation

xfs: remove unecessary AIL push wakeups

PATCH In review JiSheng Zhang 2 participants 2 messages Jan 12, 2012 – Jan 24, 2012 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: remove unecessary AIL push wakeups

In commit 0030807c66("xfs: revert to using a kthread for AIL pushing"), AIL pushing is revert back to use a kthread. But unfortunately, it introduced a regression: there are unnecessary AIL push wakeups during idle, ~20 wakeups/s. This change remove the wakeups by reverting a bit
more: set "tout" value as zero during idle.

---
 fs/xfs/xfs_trans_ail.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/xfs/xfs_trans_ail.c +1 -1
index ed9252b..2014387 100644
@@ -508,7 +508,7 @@ out_done:
 		ailp->xa_last_pushed_lsn = 0;
 		ailp->xa_log_flush = 0;
 
-		tout = 50;
+		tout = 0;
 	} else if (XFS_LSN_CMP(lsn, target) >= 0) {
 		/*
 		 * We reached the target so wait a bit longer for I/O to
Signature · 7 lines
1.7.8.3


_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw
Quoted 8 lines · JiSheng Zhang

In commit 0030807c66("xfs: revert to using a kthread for AIL pushing"), AIL pushing is revert back to use a kthread. But unfortunately, it introduced a regression: there are unnecessary AIL push wakeups during idle, ~20 wakeups/s. This change remove the wakeups by reverting a bit
more: set "tout" value as zero during idle.

Looks fine, although I'm a bit worried that I don't have the setup to reproduce the issue that the patch addressed any more and we might regress here.