* [patch]cfq-iosched: delete dead code
@ 2011-08-16 2:50 Shaohua Li
0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2011-08-16 2:50 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>
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 1f96ad6..a7d51c1 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -679,9 +679,6 @@ cfq_choose_req(struct cfq_data *cfqd, struct request *rq1, struct request *rq2,
if (rq2 == NULL)
return rq1;
- if (rq_is_sync(rq1) != rq_is_sync(rq2))
- return rq_is_sync(rq1) ? rq1 : rq2;
-
s1 = blk_rq_pos(rq1);
s2 = blk_rq_pos(rq2);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-16 2:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 2:50 [patch]cfq-iosched: delete dead code 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®