All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] CFQ: Don't store left slice when slice used up or for a idle workload
@ 2010-07-13  2:21 Gui Jianfeng
  2010-07-13 13:10 ` Jeff Moyer
  0 siblings, 1 reply; 4+ messages in thread
From: Gui Jianfeng @ 2010-07-13  2:21 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Vivek Goyal, Corrado Zoccolo, linux kernel mailing list

It doesn't make sence to store left time slice for an idle workload
or for the cfqq that uses up its slice.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
---
 block/cfq-iosched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index eb4086f..d985e38 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -3418,7 +3418,7 @@ static void cfq_completed_request(struct request_queue *q, struct request *rq)
 		 * - when there is a close cooperator
 		 */
 		if (cfq_slice_used(cfqq) || cfq_class_idle(cfqq))
-			cfq_slice_expired(cfqd, 1);
+			cfq_slice_expired(cfqd, 0);
 		else if (sync && cfqq_empty &&
 			 !cfq_close_cooperator(cfqd, cfqq)) {
 			cfqd->noidle_tree_requires_idle |=
-- 
1.5.4.rc3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-14 13:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-13  2:21 [PATCH] CFQ: Don't store left slice when slice used up or for a idle workload Gui Jianfeng
2010-07-13 13:10 ` Jeff Moyer
2010-07-14  0:40   ` Gui Jianfeng
2010-07-14 13:23     ` Jeff Moyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.