[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1317004224.29510.171.camel@sli10-conroe>
Date: Mon, 26 Sep 2011 10:30:24 +0800
From: Shaohua Li <shaohua.li@...el.com>
To: Jens Axboe <axboe@...nel.dk>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [patch]cfq-iosched: delete dead code --resend
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>
---
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;
--
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