Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172977
b: refs/heads/master
c: 464191c
h: refs/heads/master
i:
  172975: a5c785b
v: v3
  • Loading branch information
Jens Axboe committed Nov 30, 2009
1 parent fca300e commit c765154
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: 8e550632cccae34e265cb066691945515eaa7fb5
refs/heads/master: 464191c65b85a8ec68a6e1a6293af625287c807e
8 changes: 2 additions & 6 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,15 +609,11 @@ cfq_find_next_rq(struct cfq_data *cfqd, struct cfq_queue *cfqq,
static unsigned long cfq_slice_offset(struct cfq_data *cfqd,
struct cfq_queue *cfqq)
{
struct cfq_rb_root *service_tree;

service_tree = service_tree_for(cfqq_prio(cfqq), cfqq_type(cfqq), cfqd);

/*
* just an approximation, should be ok.
*/
return service_tree->count * (cfq_prio_slice(cfqd, 1, 0) -
cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio));
return (cfqd->busy_queues - 1) * (cfq_prio_slice(cfqd, 1, 0) -
cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio));
}

/*
Expand Down

0 comments on commit c765154

Please sign in to comment.