From: Jens Axboe Date: Fri, 20 Apr 2007 12:18:00 +0000 (+0200) Subject: cfq-iosched: slice offset should take ioprio into account X-Git-Tag: MMI-PSA29.97-13-9~44251^2^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67e6b49e39e9b9bf5ce1351ef21dad391856183f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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, /* * just an approximation, should be ok. */ - return ((cfqd->busy_queues - 1) * cfq_prio_slice(cfqd, 1, 0)); + return (cfqd->busy_queues - 1) * (cfq_prio_slice(cfqd, 1, 0) - + cfq_prio_slice(cfqd, cfq_cfqq_sync(cfqq), cfqq->ioprio)); } /*