[patch]cfq-iosched: delete dead code

From: Shaohua Li
Date: Mon Aug 15 2011 - 22:49:30 EST

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@xxxxxxxxx>

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);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/