[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120113013028.6802d878@ustc>
Date: Fri, 13 Jan 2012 01:30:28 +0800
From: JiSheng Zhang <jszhang3@...l.ustc.edu.cn>
To: xfs@....sgi.com, elder@...nel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] 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.
Signed-off-by: JiSheng Zhang <jszhang3@...l.ustc.edu.cn>
---
fs/xfs/xfs_trans_ail.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c
index ed9252b..2014387 100644
--- a/fs/xfs/xfs_trans_ail.c
+++ b/fs/xfs/xfs_trans_ail.c
@@ -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
--
1.7.8.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists