Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47869
b: refs/heads/master
c: aaf1228
h: refs/heads/master
i:
  47867: b4f8f22
v: v3
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Feb 11, 2007
1 parent 63a22a4 commit 4e9b5aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 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: 783660b2f60418144e168ab75a06786f9695fc70
refs/heads/master: aaf1228ddfb44f04c87d1e7dfc5ccffdba74363d
19 changes: 2 additions & 17 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1471,22 +1471,8 @@ cfq_get_io_context(struct cfq_data *cfqd, gfp_t gfp_mask)
static void
cfq_update_io_thinktime(struct cfq_data *cfqd, struct cfq_io_context *cic)
{
unsigned long elapsed, ttime;

/*
* if this context already has stuff queued, thinktime is from
* last queue not last end
*/
#if 0
if (time_after(cic->last_end_request, cic->last_queue))
elapsed = jiffies - cic->last_end_request;
else
elapsed = jiffies - cic->last_queue;
#else
elapsed = jiffies - cic->last_end_request;
#endif

ttime = min(elapsed, 2UL * cfqd->cfq_slice_idle);
unsigned long elapsed = jiffies - cic->last_end_request;
unsigned long ttime = min(elapsed, 2UL * cfqd->cfq_slice_idle);

cic->ttime_samples = (7*cic->ttime_samples + 256) / 8;
cic->ttime_total = (7*cic->ttime_total + 256*ttime) / 8;
Expand Down Expand Up @@ -1649,7 +1635,6 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
cfq_update_io_seektime(cic, rq);
cfq_update_idle_window(cfqd, cfqq, cic);

cic->last_queue = jiffies;
cic->last_request_pos = rq->sector + rq->nr_sectors;

if (cfqq == cfqd->active_queue) {
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ struct cfq_io_context {

unsigned long last_end_request;
sector_t last_request_pos;
unsigned long last_queue;

unsigned long ttime_total;
unsigned long ttime_samples;
Expand Down

0 comments on commit 4e9b5aa

Please sign in to comment.