Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123300
b: refs/heads/master
c: 30e0dc2
h: refs/heads/master
v: v3
  • Loading branch information
Jens Axboe committed Dec 29, 2008
1 parent 7148b02 commit 7c29349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31dcfab0ae6eb0340d456931df4d478e17efc65d
refs/heads/master: 30e0dc28bff9dc456cdfc2aae4aca78b8b1a1cec
8 changes: 2 additions & 6 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,12 +1136,8 @@ static int cfq_dispatch_requests(struct request_queue *q, int force)
if (cfq_class_idle(cfqq))
max_dispatch = 1;

if (cfqq->dispatched >= max_dispatch) {
if (cfqd->busy_queues > 1)
break;
if (cfqq->dispatched >= 4 * max_dispatch)
break;
}
if (cfqq->dispatched >= max_dispatch && cfqd->busy_queues > 1)
break;

if (cfqd->sync_flight && !cfq_cfqq_sync(cfqq))
break;
Expand Down

0 comments on commit 7c29349

Please sign in to comment.