aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-04-20 08:18:00 -0400
committerJens Axboe <axboe@nelson.home.kernel.dk>2007-04-30 03:01:22 -0400
commit67e6b49e39e9b9bf5ce1351ef21dad391856183f (patch)
treed76faecedf52358b30d2e4de8cc0d0f0946763a3 /block
parent498d3aa2b4f791059acd8c942ee8fa15c2ce36c2 (diff)
cfq-iosched: slice offset should take ioprio into account
Use the max_slice-cur_slice as the multipler for the insertion offset. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/cfq-iosched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 29284fa06e6b..4a0397022f5b 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -442,7 +442,8 @@ static unsigned long cfq_slice_offset(struct cfq_data *cfqd,
442 /* 442 /*
443 * just an approximation, should be ok. 443 * just an approximation, should be ok.
444 */ 444 */
445 return ((cfqd->busy_queues - 1) * cfq_prio_slice(cfqd, 1, 0)); 445 return (cfqd->busy_queues - 1) * (cfq_prio_slice(cfqd, 1, 0) -
446 cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio));
446} 447}
447 448
448/* 449/*