[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1313463004.27321.24.camel@sli10-conroe>
Date: Tue, 16 Aug 2011 10:50:04 +0800
From: Shaohua Li <shaohua.li@...el.com>
To: Jens Axboe <jaxboe@...ionio.com>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [patch]cfq-iosched: delete dead code
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@...el.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists