public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]cfq-iosched: removing unnecessary think time checking
@ 2011-03-15  2:57 Shaohua Li
  2011-03-15 15:56 ` Vivek Goyal
  0 siblings, 1 reply; 2+ messages in thread
From: Shaohua Li @ 2011-03-15  2:57 UTC (permalink / raw)
  To: Jens Axboe; +Cc: lkml, Vivek Goyal, Jeff Moyer, Corrado Zoccolo, Gui Jianfeng

Removing think time checking. A high thinktime queue might means the queue
dispatches several requests and then do away. Limitting such queue seems
meaningless. And also this can simplify code. This is suggested by Vivek.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>

---
 block/cfq-iosched.c |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

Index: linux/block/cfq-iosched.c
===================================================================
--- linux.orig/block/cfq-iosched.c	2011-03-10 13:52:13.000000000 +0800
+++ linux/block/cfq-iosched.c	2011-03-10 13:53:08.000000000 +0800
@@ -2418,19 +2418,14 @@ static bool cfq_may_dispatch(struct cfq_
 			return false;
 
 		/*
-		 * If there is only one sync queue, and its think time is
-		 * small, we can ignore async queue here and give the sync
+		 * If there is only one sync queue
+		 * we can ignore async queue here and give the sync
 		 * queue no dispatch limit. The reason is a sync queue can
 		 * preempt async queue, limiting the sync queue doesn't make
 		 * sense. This is useful for aiostress test.
 		 */
-		if (cfq_cfqq_sync(cfqq) && cfqd->busy_sync_queues == 1) {
-			struct cfq_io_context *cic = RQ_CIC(cfqq->next_rq);
-
-			if (sample_valid(cic->ttime_samples) &&
-				cic->ttime_mean < cfqd->cfq_slice_idle)
-				promote_sync = true;
-		}
+		if (cfq_cfqq_sync(cfqq) && cfqd->busy_sync_queues == 1)
+			promote_sync = true;
 
 		/*
 		 * We have other queues, don't allow more IO from this one



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

end of thread, other threads:[~2011-03-15 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15  2:57 [PATCH]cfq-iosched: removing unnecessary think time checking Shaohua Li
2011-03-15 15:56 ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox