lkml.org 
[lkml]   [2010]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 2/3] cfq-iosched: Implement a new tunable group_idle
On Mon, Jul 19, 2010 at 10:14 AM, Vivek Goyal <vgoyal@redhat.com> wrote:
> @@ -3420,7 +3453,10 @@ static void cfq_completed_request(struct request_queue *q, struct request *rq)
>                 * the queue.
>                 */
>                if (cfq_should_wait_busy(cfqd, cfqq)) {
> -                       cfqq->slice_end = jiffies + cfqd->cfq_slice_idle;
> +                       unsigned long extend_sl = cfqd->cfq_slice_idle;
> +                       if (!cfqd->cfq_slice_idle)
> +                               extend_sl = cfqd->cfq_group_idle;
> +                       cfqq->slice_end = jiffies + extend_sl;
>                        cfq_mark_cfqq_wait_busy(cfqq);
>                        cfq_log_cfqq(cfqd, cfqq, "will busy wait");
>                }

Vivek, I haven't looked at this particular code snippet for some time.
Can you tell me why we add the slice_idle (or w/ your change
extend_sl) to slice_end instead of arming the idle timer with that
amount of time?

-Divyesh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-07-19 22:57    [W:0.097 / U:1.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site