Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=67e6b49e39e9b9bf5ce1351ef21dad391856183f
Commit:     67e6b49e39e9b9bf5ce1351ef21dad391856183f
Parent:     498d3aa2b4f791059acd8c942ee8fa15c2ce36c2
Author:     Jens Axboe <[EMAIL PROTECTED]>
AuthorDate: Fri Apr 20 14:18:00 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Mon Apr 30 09:01:22 2007 +0200

    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 <[EMAIL PROTECTED]>
---
 block/cfq-iosched.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 29284fa..4a03970 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));
 }
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to