Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242303
b: refs/heads/master
c: c4ade94
h: refs/heads/master
i:
  242301: b20b789
  242299: f0ea02f
  242295: 19fd935
  242287: 7f6b536
  242271: 066a1ca
  242239: 7dab264
  242175: 039da57
v: v3
  • Loading branch information
Li, Shaohua authored and Jens Axboe committed Mar 23, 2011
1 parent 2223bde commit 5d7b8e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: 62a37f6badd1ac97ba07d543b5d4be2f9cb17217
refs/heads/master: c4ade94fc00f8b34589719d8a347f658b6d3951e
13 changes: 4 additions & 9 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -2417,19 +2417,14 @@ static bool cfq_may_dispatch(struct cfq_data *cfqd, struct cfq_queue *cfqq)
return false;

/*
* If there is only one sync queue, and its think time is
* small, we can ignore async queue here and give the sync
* If there is only one sync queue
* we can ignore async queue here and give the sync
* queue no dispatch limit. The reason is a sync queue can
* preempt async queue, limiting the sync queue doesn't make
* sense. This is useful for aiostress test.
*/
if (cfq_cfqq_sync(cfqq) && cfqd->busy_sync_queues == 1) {
struct cfq_io_context *cic = RQ_CIC(cfqq->next_rq);

if (sample_valid(cic->ttime_samples) &&
cic->ttime_mean < cfqd->cfq_slice_idle)
promote_sync = true;
}
if (cfq_cfqq_sync(cfqq) && cfqd->busy_sync_queues == 1)
promote_sync = true;

/*
* We have other queues, don't allow more IO from this one
Expand Down

0 comments on commit 5d7b8e2

Please sign in to comment.