projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2058297
)
cfq-iosched: fix merge error
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 3 Nov 2009 20:25:45 +0000
(21:25 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 3 Nov 2009 20:25:45 +0000
(21:25 +0100)
We ended up with testing the same condition twice, pretty
pointless. Remove that first if.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
patch
|
blob
|
history
diff --git
a/block/cfq-iosched.c
b/block/cfq-iosched.c
index 13b612f9f27ab572abaf177f94a8e30701c487c9..b700f41cafb30e67ebff900627d93b545989a8c6 100644
(file)
--- a/
block/cfq-iosched.c
+++ b/
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)) {
/*