Lines Matching refs:iops_limit
571 static unsigned int calculate_io_allowed(u32 iops_limit, in calculate_io_allowed() argument
584 tmp = (u64)iops_limit * jiffy_elapsed; in calculate_io_allowed()
630 u32 iops_limit = tg_iops_limit(tg, rw); in throtl_trim_iops() local
633 if (iops_limit == UINT_MAX) in throtl_trim_iops()
637 io_trim = calculate_io_allowed(iops_limit, time_elapsed); in throtl_trim_iops()
708 u32 iops_limit = tg_iops_limit(tg, rw); in __tg_update_carryover() local
736 if (iops_limit != UINT_MAX) { in __tg_update_carryover()
737 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed); in __tg_update_carryover()
760 u32 iops_limit) in tg_within_iops_limit() argument
770 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd); in tg_within_iops_limit()
778 jiffy_wait = max(jiffy_wait, HZ / iops_limit + 1); in tg_within_iops_limit()
874 u32 iops_limit = tg_iops_limit(tg, rw); in tg_dispatch_iops_time() local
877 if (iops_limit == UINT_MAX || tg->flags & THROTL_TG_CANCELING) in tg_dispatch_iops_time()
881 iops_wait = tg_within_iops_limit(tg, bio, iops_limit); in tg_dispatch_iops_time()