Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27073
b: refs/heads/master
c: 12e9fdd
h: refs/heads/master
i:
  27071: b75924c
v: v3
  • Loading branch information
Jens Axboe committed Jun 1, 2006
1 parent 44617b2 commit cd338fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 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: e0de0206a2a37cd3e0ba9954d9f863e11d6d1782
refs/heads/master: 12e9fddd6eb827937fcaac8ac7712c7303898b1f
16 changes: 13 additions & 3 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1747,14 +1747,24 @@ cfq_crq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,

cfqq->next_crq = cfq_choose_req(cfqd, cfqq->next_crq, crq);

cic = crq->io_context;

/*
* we never wait for an async request and we don't allow preemption
* of an async request. so just return early
*/
if (!cfq_crq_is_sync(crq))
if (!cfq_crq_is_sync(crq)) {
/*
* sync process issued an async request, if it's waiting
* then expire it and kick rq handling.
*/
if (cic == cfqd->active_cic &&
del_timer(&cfqd->idle_slice_timer)) {
cfq_slice_expired(cfqd, 0);
cfq_start_queueing(cfqd, cfqq);
}
return;

cic = crq->io_context;
}

cfq_update_io_thinktime(cfqd, cic);
cfq_update_io_seektime(cfqd, cic, crq);
Expand Down

0 comments on commit cd338fe

Please sign in to comment.