lkml.org 
[lkml]   [2017]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V5 09/17] blk-throttle: detect completed idle cgroup
Hello,

On Thu, Dec 15, 2016 at 12:33:00PM -0800, Shaohua Li wrote:
> @@ -1660,6 +1671,11 @@ static bool throtl_tg_can_downgrade(struct throtl_grp *tg)
> struct throtl_data *td = tg->td;
> unsigned long now = jiffies;
>
> + if (time_after_eq(now, tg->last_dispatch_time[READ] +
> + td->throtl_slice) &&
> + time_after_eq(now, tg->last_dispatch_time[WRITE] +
> + td->throtl_slice))
> + return false;

So, the duration used here is gonna be made explicitly configurable by
a future patch, right? Might be worthwhile to note that in the
description.

Thanks.

--
tejun

\
 
 \ /
  Last update: 2017-01-09 21:13    [W:0.443 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site