Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29199
b: refs/heads/master
c: fd61af0
h: refs/heads/master
i:
  29197: eb48b0c
  29195: dc4c0e9
  29191: e773020
  29183: abd2282
v: v3
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Jun 23, 2006
1 parent 3c3eee1 commit b6d3b3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: caaa5f9f0a75d1dc5e812e69afdbb8720e077fd3
refs/heads/master: fd61af0384014ca29428ace7c17a978b755aeddd
10 changes: 5 additions & 5 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,11 +952,15 @@ static void cfq_dispatch_insert(request_queue_t *q, struct cfq_rq *crq)
{
struct cfq_data *cfqd = q->elevator->elevator_data;
struct cfq_queue *cfqq = crq->cfq_queue;
struct request *rq;

cfqq->next_crq = cfq_find_next_crq(cfqd, cfqq, crq);
cfq_remove_request(crq->request);
cfqq->on_dispatch[cfq_crq_is_sync(crq)]++;
elv_dispatch_sort(q, crq->request);

rq = list_entry(q->queue_head.prev, struct request, queuelist);
cfqd->last_sector = rq->sector + rq->nr_sectors;
}

/*
Expand Down Expand Up @@ -1767,11 +1771,7 @@ static void
cfq_crq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
struct cfq_rq *crq)
{
struct cfq_io_context *cic;

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

cic = crq->io_context;
struct cfq_io_context *cic = crq->io_context;

/*
* we never wait for an async request and we don't allow preemption
Expand Down

0 comments on commit b6d3b3a

Please sign in to comment.