Lines Matching refs:throtl_slice
22 static unsigned long throtl_slice = HZ/10; /* 100 ms */ variable
708 tg->slice_end[rw] = jiffies + throtl_slice; in throtl_start_new_slice_with_credit()
720 tg->slice_end[rw] = jiffies + throtl_slice; in throtl_start_new_slice()
730 tg->slice_end[rw] = roundup(jiffy_end, throtl_slice); in throtl_set_slice_end()
736 tg->slice_end[rw] = roundup(jiffy_end, throtl_slice); in throtl_extend_slice()
776 throtl_set_slice_end(tg, rw, jiffies + throtl_slice); in throtl_trim_slice()
780 nr_slices = time_elapsed / throtl_slice; in throtl_trim_slice()
784 tmp = tg->bps[rw] * throtl_slice * nr_slices; in throtl_trim_slice()
788 io_trim = (tg->iops[rw] * throtl_slice * nr_slices)/HZ; in throtl_trim_slice()
803 tg->slice_start[rw] += nr_slices * throtl_slice; in throtl_trim_slice()
823 jiffy_elapsed_rnd = throtl_slice; in tg_with_in_iops_limit()
825 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, throtl_slice); in tg_with_in_iops_limit()
872 jiffy_elapsed_rnd = throtl_slice; in tg_with_in_bps_limit()
874 jiffy_elapsed_rnd = roundup(jiffy_elapsed_rnd, throtl_slice); in tg_with_in_bps_limit()
937 if (time_before(tg->slice_end[rw], jiffies + throtl_slice)) in tg_may_dispatch()
938 throtl_extend_slice(tg, rw, jiffies + throtl_slice); in tg_may_dispatch()