Skip to contentSkip to conversation

cfq-iosched: delete dead code --resend

PATCH New Shaohua Li 1 participant 1 message Sep 26, 2011 Block layer

lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

PATCH 1/1 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)

---
 block/cfq-iosched.c |    3 ---
 1 file changed, 3 deletions(-)
block/cfq-iosched.c +0 -3
Index: linux/block/cfq-iosched.c
===================================================================
@@ -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;