Skip to content

Commit

Permalink
cfq-iosched: fix merge error
Browse files Browse the repository at this point in the history
We ended up with testing the same condition twice, pretty
pointless. Remove that first if.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Nov 3, 2009
1 parent 2058297 commit 125c4f2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
/*
Expand Down

0 comments on commit 125c4f2

Please sign in to comment.