Quellcode durchsuchen

cfq-iosched: fix merge error

We ended up with testing the same condition twice, pretty
pointless. Remove that first if.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Jens Axboe vor 15 Jahren
Ursprung
Commit
125c4f221a
1 geänderte Dateien mit 0 neuen und 1 gelöschten Zeilen
  1. 0 1
      block/cfq-iosched.c

+ 0 - 1
block/cfq-iosched.c

@@ -2433,7 +2433,6 @@ cfq_should_preempt(struct cfq_data *cfqd, struct cfq_queue *new_cfqq,
 	 * if this request is as-good as one we would expect from the
 	 * current cfqq, let it preempt
 	 */
-	if (cfq_rq_close(cfqd, cfqq, rq))
 	if (cfq_rq_close(cfqd, cfqq, rq) && (!cfq_cfqq_coop(new_cfqq) ||
 	    cfqd->busy_queues == 1)) {
 		/*