Lines Matching refs:throtl_slice
22 static unsigned long throtl_slice = HZ/10; /* 100 ms */ variable
565 tg->slice_end[rw] = jiffies + throtl_slice; in throtl_start_new_slice_with_credit()
577 tg->slice_end[rw] = jiffies + throtl_slice; in throtl_start_new_slice()
587 tg->slice_end[rw] = roundup(jiffy_end, throtl_slice); in throtl_set_slice_end()
593 tg->slice_end[rw] = roundup(jiffy_end, throtl_slice); in throtl_extend_slice()
633 throtl_set_slice_end(tg, rw, jiffies + throtl_slice); in throtl_trim_slice()
637 nr_slices = time_elapsed / throtl_slice; in throtl_trim_slice()
641 tmp = tg->bps[rw] * throtl_slice * nr_slices; in throtl_trim_slice()
645 io_trim = (tg->iops[rw] * throtl_slice * nr_slices)/HZ; in throtl_trim_slice()
660 tg->slice_start[rw] += nr_slices * throtl_slice; in throtl_trim_slice()
680 jiffy_elapsed_rnd = throtl_slice; in tg_with_in_iops_limit()
682 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, throtl_slice); in tg_with_in_iops_limit()
729 jiffy_elapsed_rnd = throtl_slice; in tg_with_in_bps_limit()
731 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, throtl_slice); in tg_with_in_bps_limit()
794 if (time_before(tg->slice_end[rw], jiffies + throtl_slice)) in tg_may_dispatch()
795 throtl_extend_slice(tg, rw, jiffies + throtl_slice); in tg_may_dispatch()