mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch]cfq-iosched: delete dead code --resend
@ 2011-09-26  2:30 Shaohua Li
  0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2011-09-26  2:30 UTC (permalink / raw)
  To: Jens Axboe; +Cc: lkml

Below check is obsoleted. Currently requests in a queue are not
sync/async mixed (except oom queue, but it's rare case)

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

---
 block/cfq-iosched.c |    3 ---
 1 file changed, 3 deletions(-)

Index: linux/block/cfq-iosched.c
===================================================================
--- linux.orig/block/cfq-iosched.c	2011-09-22 12:54:06.000000000 +0800
+++ linux/block/cfq-iosched.c	2011-09-22 12:56:47.000000000 +0800
@@ -681,9 +681,6 @@ cfq_choose_req(struct cfq_data *cfqd, st
 	if (rq2 == NULL)
 		return rq1;
 
-	if (rq_is_sync(rq1) != rq_is_sync(rq2))
-		return rq_is_sync(rq1) ? rq1 : rq2;
-
 	if ((rq1->cmd_flags ^ rq2->cmd_flags) & REQ_PRIO)
 		return rq1->cmd_flags & REQ_PRIO ? rq1 : rq2;
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-26  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26  2:30 [patch]cfq-iosched: delete dead code --resend Shaohua Li

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

all inboxes | Powered by JetHome®